G
Guest
I was wondering if anyone could help me as to how to go about moving a single record from one table to another. I have a table with unused tickets and once it used I need to have a button on a form that when the user clicks it, it transfers the record to a "used" table, and then opens the corresponding "used" form so that the user can enter additional data, such as a used date, and applied to, etc. The records must be kept in seperate tables for tracking purposes so I can't just keep them in the same table and filter the records by query. Right now I'm using code from a basic converted macro
DoCmd.SetWarnings Fals
DoCmd.RunCommand acCmdSelectRecor
DoCmd.RunCommand acCmdCu
DoCmd.Close acForm, "NRAvail
DoCmd.OpenForm "NRUsed", acNormal, "", "", , acNorma
DoCmd.GoToRecord acForm, "NRUsed", acNewRe
DoCmd.RunCommand acCmdPasteAppen
DoCmd.GoToControl "DateUsed
DoCmd.SetWarnings Tru
However this works sporadically at best, sometimes transferring all data, sometimes very little
Any help would be greatly appreciated
thanks
DoCmd.SetWarnings Fals
DoCmd.RunCommand acCmdSelectRecor
DoCmd.RunCommand acCmdCu
DoCmd.Close acForm, "NRAvail
DoCmd.OpenForm "NRUsed", acNormal, "", "", , acNorma
DoCmd.GoToRecord acForm, "NRUsed", acNewRe
DoCmd.RunCommand acCmdPasteAppen
DoCmd.GoToControl "DateUsed
DoCmd.SetWarnings Tru
However this works sporadically at best, sometimes transferring all data, sometimes very little
Any help would be greatly appreciated
thanks