Hi,
I am using Access97 and am trying to insert new Records in my code. Before adding new records to table I am doing some update in the same table and after that I am inserting the new records it's in the same sub. I am using the following to add the new records:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 'select
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 'copy
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
but once I do this a dialog-box pops up and says:
This record has been changed by another user since you started editing it ........ and have three buttons to select from i.e.
Save Record
Copy To Clipboard
DropChanges
Now my question is there any other way to add the new records besides using DoCmd.DoMenuItem. I'll really appreciate for the help.
Thanks!
I am using Access97 and am trying to insert new Records in my code. Before adding new records to table I am doing some update in the same table and after that I am inserting the new records it's in the same sub. I am using the following to add the new records:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 'select
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 'copy
DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append
but once I do this a dialog-box pops up and says:
This record has been changed by another user since you started editing it ........ and have three buttons to select from i.e.
Save Record
Copy To Clipboard
DropChanges
Now my question is there any other way to add the new records besides using DoCmd.DoMenuItem. I'll really appreciate for the help.
Thanks!