If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > problem adding a new record to a database using DAO

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-03, 23:04
N2hockey19 N2hockey19 is offline
Registered User
 
Join Date: Mar 2003
Location: Alabama
Posts: 2
Unhappy problem deleting and saving to a database

Ok, i posted earlier about problems adding to my database, but thats fixed...but now i have problems deleting and saving from my database. my problem was that i forgot i added an adodc to my form, but when i changed it back over to data control, i cant edit a record or delete a record from the database, i got a friend to print out his code for his project, but when i use the same type of code (such as just data1.recordset.delete), it wont work. i get the same error message for delete as i do for saving, which is "runtime error '3420': object invalid or no longer set" any suggestions???? im using DAO, i was using DAO with an ADO data control, which was my problem when i tried to add a name, but why do i get these problems when i completely took out adodc and started using all dao???

Last edited by N2hockey19; 03-06-03 at 01:48.
Reply With Quote
  #2 (permalink)  
Old 03-06-03, 02:43
N2hockey19 N2hockey19 is offline
Registered User
 
Join Date: Mar 2003
Location: Alabama
Posts: 2
Red face nevermind

nevermind, like an idiot, i closed the recordset, workspace, and database in the wrong place took me awhile to catch it, works fine now....all those sleepless nights! D:
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On