A bit further explanation of why I have this dilemma:
I have a table containing timesheet records. I am transferring (then
deleting) selected records to a termporary table (as these are just a list of
names which will then be allocated to specific time slots once all names are
down). I am then loading a new timesheet in its place (which contains
different time slots). Then I want to copy the records (peoples names) back
from the temp table to the new timesheet.
The primary keys (timesheet_ID) are not the same on both tables as
Timesheet_ID is an autocounter in the main table.
I have got this far in working out a solution:
DoCmd.OpenQuery "AutodrawTempQuery", acNormal, acEdit
DoCmd.DoMenuItem acFormBar, acEditMenu, 9, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70
DoCmd.Close acQuery, "autodrawTempQuery", acSaveYes
DoCmd.OpenQuery "AutodrawTimesheet", acNormal, acEdit
DoCmd.DoMenuItem acFormBar, acEditMenu, 9, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 3, , acMenuVer70
DoCmd.Close acQuery, "AutodrawTimesheet", acSaveYes
I feel like I am not "doing it properly" but this is the only way I can see
to do it. I think it might work.
Any thoughts?