I have created the autokeys macro for the function key F1, which closes the active form after undoing any changes made to the record and opens a Main Menu form.
The macro line below works fine as long as the current object is a form and I would expect this line to be ignored if the current object was not a form as the condition would be false. However, on pressing F1 whilst the active object is a report the line is not ignored and I get an error message, has anyone any idea of where I am going wrong?
Condition: [Screen].[ActiveForm].[Dirty] = true
Action: RunCommand
Command: Undo
Many Thanks
Sue
The macro line below works fine as long as the current object is a form and I would expect this line to be ignored if the current object was not a form as the condition would be false. However, on pressing F1 whilst the active object is a report the line is not ignored and I get an error message, has anyone any idea of where I am going wrong?
Condition: [Screen].[ActiveForm].[Dirty] = true
Action: RunCommand
Command: Undo
Many Thanks
Sue