R
Rob Meade
Hi, a friend of mine has sent me this...
Dim stTableName As String
stTableName = "Archive Invoices"
DoCmd.OpenTable "Accounts Register Invoices", acViewNormal, acEdit
Application.RunCommand acCmdSelectRecord
Application.RunCommand acCmdCut
DoCmd.Close acTable, "Accounts Register Invoices"
DoCmd.OpenTable (stTableName)
Application.RunCommand acCmdPasteAppend
DoCmd.Close acTable, stTableName
DoCmd.OpenForm "Registers Menu", acNormal
He is trying to have this fire on a close form event, but he says the 'cut'
part isn't working...
Can anyone offer any suggestions/help for this...
Thanks in advance,
Regards
Rob
Dim stTableName As String
stTableName = "Archive Invoices"
DoCmd.OpenTable "Accounts Register Invoices", acViewNormal, acEdit
Application.RunCommand acCmdSelectRecord
Application.RunCommand acCmdCut
DoCmd.Close acTable, "Accounts Register Invoices"
DoCmd.OpenTable (stTableName)
Application.RunCommand acCmdPasteAppend
DoCmd.Close acTable, stTableName
DoCmd.OpenForm "Registers Menu", acNormal
He is trying to have this fire on a close form event, but he says the 'cut'
part isn't working...
Can anyone offer any suggestions/help for this...
Thanks in advance,
Regards
Rob