Try using DmGetRecord in place of DmQueryRecord, which gets a handle to the record for read only operations. The reference manual isn't clear on use of DmDetachRecord, but I would guess that it's considered a write-type operation. Regards, Steve ----- Original Message ----- From: Adrien Crochet <[EMAIL PROTECTED]> To: Palm Developer Forum <[email protected]> Sent: Monday, September 18, 2000 11:25 AM Subject: Database Recors
> Hello > > I'm trying to move some records from a database to another but my > program crashes : here is the code of my move : > > h = DmQueryRecord(dbSync, home); > > DmDetachRecord(dbSync, 4, h); > DmAttachRecord(dbActive, &home, h, NULL); > > The 2 databases are well opened and home has a value of 4. > > Should I delete the Record of the destination database before attaching > the new one ? > > Thanks for your help. > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
