473,836 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reserved error

Hello all,
I have made a form with a button to delete the current record.
When clicking the button, I get a errmsg "Reserved error" I don't know what
this means. And even though I have put "Me!Combo39.Req uery" instruction,
after deleting - the combobox still shows the name of the deleted person.
Furthermore, when closing the form and reopening again, it shows that the
record was not deleted ...

Can anybody help me with this? The coed is below ...
Very much appreciated ...
Private Sub Command54_Click ()
On Error GoTo Err_Command54_C lick
If MsgBox("Wil u werkelijk dit contact wissen?", _
vbQuestion + vbYesNo, "Please confirm...") = vbYes Then

DoCmd.DoMenuIte m acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuIte m acFormBar, acEditMenu, 6, , acMenuVer70
Me!Combo39.Requ ery
Me!Combo41.Requ ery
Form.Requery
End If
Exit_Command54_ Click:
Exit Sub

Err_Command54_C lick:
MsgBox Err.Description
Resume Exit_Command54_ Click

End Sub
Nov 13 '05 #1
2 1868
Ronny, Probably the reason the record the record continues to show is
because when you get the error the record isn't getting deleted. I pasted
your code in a form and it ran without any problem. Is it possible that the
recordsource of your form is a non-updatable recordset. In other words can
you open the source directly via the table or query that the form is based
on and delete a record?
--
Reggie

----------
"Ronny Sigo" <roon ad skynet.be> wrote in message
news:41******** **************@ news.skynet.be. ..
Hello all,
I have made a form with a button to delete the current record.
When clicking the button, I get a errmsg "Reserved error" I don't know what this means. And even though I have put "Me!Combo39.Req uery" instruction,
after deleting - the combobox still shows the name of the deleted person.
Furthermore, when closing the form and reopening again, it shows that the
record was not deleted ...

Can anybody help me with this? The coed is below ...
Very much appreciated ...
Private Sub Command54_Click ()
On Error GoTo Err_Command54_C lick
If MsgBox("Wil u werkelijk dit contact wissen?", _
vbQuestion + vbYesNo, "Please confirm...") = vbYes Then

DoCmd.DoMenuIte m acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuIte m acFormBar, acEditMenu, 6, , acMenuVer70
Me!Combo39.Requ ery
Me!Combo41.Requ ery
Form.Requery
End If
Exit_Command54_ Click:
Exit Sub

Err_Command54_C lick:
MsgBox Err.Description
Resume Exit_Command54_ Click

End Sub

Nov 13 '05 #2
Hi Reggie,
Thanks for replying ...
Yes I can delete a record via a query or directly in the table ....
Greetz ...
"Reggie" <No**********@N oSpamsmittysine t.com> schreef in bericht
news:lv******** ************@co mcast.com...
Ronny, Probably the reason the record the record continues to show is
because when you get the error the record isn't getting deleted. I pasted
your code in a form and it ran without any problem. Is it possible that the recordsource of your form is a non-updatable recordset. In other words can you open the source directly via the table or query that the form is based
on and delete a record?
--
Reggie

----------
"Ronny Sigo" <roon ad skynet.be> wrote in message
news:41******** **************@ news.skynet.be. ..
Hello all,
I have made a form with a button to delete the current record.
When clicking the button, I get a errmsg "Reserved error" I don't know

what
this means. And even though I have put "Me!Combo39.Req uery" instruction,
after deleting - the combobox still shows the name of the deleted person. Furthermore, when closing the form and reopening again, it shows that the record was not deleted ...

Can anybody help me with this? The coed is below ...
Very much appreciated ...
Private Sub Command54_Click ()
On Error GoTo Err_Command54_C lick
If MsgBox("Wil u werkelijk dit contact wissen?", _
vbQuestion + vbYesNo, "Please confirm...") = vbYes Then

DoCmd.DoMenuIte m acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuIte m acFormBar, acEditMenu, 6, , acMenuVer70
Me!Combo39.Requ ery
Me!Combo41.Requ ery
Form.Requery
End If
Exit_Command54_ Click:
Exit Sub

Err_Command54_C lick:
MsgBox Err.Description
Resume Exit_Command54_ Click

End Sub


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
12388
by: Matthew Cascio | last post by:
My understanding is that using reserved words as column names is allowable as long as they are quoted. I am trying to create a table dynamically with columns defined by the first row of a text file I import. Unfortunately, I have no control over the column names and the data provider has chosen to use the word "USE" as a column name. "USE" is a reserved word. To handle this, I tried quoting the word during the CREATE TABLE statement,...
2
1788
by: Jessard | last post by:
Hi All, I am writing a .NET app that accesses an access View. The view has a table column called 'Position'. When i try and right an UpdateCommand string for this using this column I am greeted with a 'Syntax error in Update statement.' when attempting the update. I take that field out and the update works. I am assuming Position is a reserved word. I have even tried changing the name of the column in the View to something other...
17
3842
by: Benoit Martin | last post by:
I'm working on a project in VB.net connecting to a SQL Server 2000 database that I can't modify I created a dataset with a schema identical to the DB. When trying to update the DB from the dataset using the dataAdapter.update sub, I get an error. The problem seems to be that one of the fields was named 'desc' which is a reserved word for SQL. I've been able to work around this design flaw 'till now but it looks like the update sub can't...
11
2777
by: Roman Werpachowski | last post by:
The following code does not compile: #include <iostream> class close { public: void message(); }; inline void close::message()
31
3274
by: metaperl | last post by:
-- python -i File "<stdin>", line 1 class = "algebra" ^ SyntaxError: invalid syntax Why isn' t the parser smart enough to see that class followed by an identifier is used for class definition but class followed by equals is a simple assignment?
2
1592
by: Miro | last post by:
I created a field in a db called "Password" If i do that, the Update row command throws an exception error. If I call the field PWord then it works great. Is this a reserved word for an access db? or something? Are there others? Thanks,
3
6055
by: Robert | last post by:
I ask because, in Access help, it does not list is as such, however, I had a table with a field named 'Name'. If I put a control on a form and used this as the control source no problems, but if I used the field in a calculated control, i.e... =Trim() ... the control would display the name of the form. Error in help documentation?
8
17794
by: adampierce | last post by:
I am trying to run a pretty simple select query in Access 2007, and I keep getting the error message "Reserved error (-1524); there is no message for this error." There are no linked tables in the database - the design of the database is very simple. I should also note that I ran the "compact and repair database" tool and I am still getting the same error message. Any thoughts?
8
1749
by: globalrev | last post by:
class Foo(object): def Hello(self): print "hi" object is purple, ie some sort of reserved word. why is self in black(ie a normal word) when it has special powers. replacing it with sel for example will cause an error when calling Hello.
3
2706
ThatThatGuy
by: ThatThatGuy | last post by:
I was working in a online inventory application for my client.... I had a Access database......in which there was a few tables..... In one of my tables i had columns like PurchaseDate, ExpiryDate, ItemName, ItemCode, ItemBarCode, Size, Shape, Make, Color, Qty...etc I passed a simple insert query to insert values to these fields.... Every time i click on Submit button i used to get error message as Syntax Error in insert into statement......
0
10822
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10577
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7774
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6975
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4443
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3103
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.