Basically, here is the issue.....
1) data is entered into a table via a form. (table = tblticketform) and (form = frmticketinput)
2) what I am trying to do is have a button that when clicked or "on enter" it will Append the data from (tblticketform) to (tblticket) then delete all the data from (tblticketform) and refresh (frmticketinput) to show no records.
I already have the append and delete queries made / tested and they work. The issue is getting the button on the form to work.
In the macro, I have set the warnings off then:
1) open the append query
2) open the delete query
3) close frmticketinput
4) open frmticketinput
then warnings are turned back on
the problem is that I get the warning:
"This action can not be carried out while processing a form or report event"...."A macro specified as the OnOpen, OnLoad, OnClose, OnFormat, OnRetreat.... contains an invalid action for this property.
When I click "OK", the Macro Singl step screen appears and when I click "Stop All macros" and repeat the same errors one more time, all goes okay...
What am I missing?
I tried just using the append then delete query and "refresh" but it shows "Deleted" in the fields.
I even tried 2 macros..
The first appends / Deletes / close form then runs the second macro which simply opens the form again. but the same warnings appear.
Any help is greatly appreciated.
1) data is entered into a table via a form. (table = tblticketform) and (form = frmticketinput)
2) what I am trying to do is have a button that when clicked or "on enter" it will Append the data from (tblticketform) to (tblticket) then delete all the data from (tblticketform) and refresh (frmticketinput) to show no records.
I already have the append and delete queries made / tested and they work. The issue is getting the button on the form to work.
In the macro, I have set the warnings off then:
1) open the append query
2) open the delete query
3) close frmticketinput
4) open frmticketinput
then warnings are turned back on
the problem is that I get the warning:
"This action can not be carried out while processing a form or report event"...."A macro specified as the OnOpen, OnLoad, OnClose, OnFormat, OnRetreat.... contains an invalid action for this property.
When I click "OK", the Macro Singl step screen appears and when I click "Stop All macros" and repeat the same errors one more time, all goes okay...
What am I missing?
I tried just using the append then delete query and "refresh" but it shows "Deleted" in the fields.
I even tried 2 macros..
The first appends / Deletes / close form then runs the second macro which simply opens the form again. but the same warnings appear.
Any help is greatly appreciated.