Hi!
I am a newbie here. I have some experience with Excel VBA, but Access is totally different. Could you please help me with the following?
I have two tables in my Access database, their fields are exactly the same (for now). One table is called Uncheched. The other one is called Checked.
So what is need is a macro that takes selected records in table Unchecked and copies them to the end of table Checked. Actually CUTS from Unchecked and PASTES to the end of Checked table.
Thank you!
PS. This is what I'm trying to do, but without much success so far
Sub MoveRecords()
DoCmd.RunCommand acCmdCut
DoCmd.OpenTable "tblChecked", acNormal, acEdit
DoCmd.GoToRecord , , acLast
DoCmd.RunCommand acCmdPaste
End Sub
I am a newbie here. I have some experience with Excel VBA, but Access is totally different. Could you please help me with the following?
I have two tables in my Access database, their fields are exactly the same (for now). One table is called Uncheched. The other one is called Checked.
So what is need is a macro that takes selected records in table Unchecked and copies them to the end of table Checked. Actually CUTS from Unchecked and PASTES to the end of Checked table.
Thank you!
PS. This is what I'm trying to do, but without much success so far
Sub MoveRecords()
DoCmd.RunCommand acCmdCut
DoCmd.OpenTable "tblChecked", acNormal, acEdit
DoCmd.GoToRecord , , acLast
DoCmd.RunCommand acCmdPaste
End Sub