J
Jean-Marie
In my DB (Access 2000 /Win X Home) I have 2 tables:
- tblTransactions to record transactions on transport vehicles
- tblIncidents linked to tblTransactions to record incidents related to a
transaction if any.
- I have a form frmTransactions to capture transaction data and a button on
that form to open the frmIncidents that captures incident for current
transaction
In the click event of the button I have inserted this code that I used the
assistant to obtain:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
it should save the curent transaction record.
WhenI test the forms I get a message stating: "The command or action 'save
record' isn’t available now."
In an attempt to fix this I changed the code to:
DoCmd.RunCommand acCmdSaveRecord.
That it didn’t help, I am getting the same message. I don’t understand what
I did wrong.
I would very much appreciate if someone could help me fix this.
Many thanks in avance.
- tblTransactions to record transactions on transport vehicles
- tblIncidents linked to tblTransactions to record incidents related to a
transaction if any.
- I have a form frmTransactions to capture transaction data and a button on
that form to open the frmIncidents that captures incident for current
transaction
In the click event of the button I have inserted this code that I used the
assistant to obtain:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
it should save the curent transaction record.
WhenI test the forms I get a message stating: "The command or action 'save
record' isn’t available now."
In an attempt to fix this I changed the code to:
DoCmd.RunCommand acCmdSaveRecord.
That it didn’t help, I am getting the same message. I don’t understand what
I did wrong.
I would very much appreciate if someone could help me fix this.
Many thanks in avance.