The form works perfectly. When the user clicks the report button on the form, the report works perfectly based on my query.
Now, when the report button is pushed, i need to execute this statement BEFORE the report runs:
UPDATE TASKS set CrossRefPriority="ZAZ"
WHERE TASKS.PRIORITY="GOOD"
(TASKS is the table used by the query)
Here is the code that executes currently when they push the report button:
Dim stDocName As String
stDocName = "zLoad0Priority"
DoCmd.OpenReport stDocName, acPreview
Ideas?
THANKS
Now, when the report button is pushed, i need to execute this statement BEFORE the report runs:
UPDATE TASKS set CrossRefPriority="ZAZ"
WHERE TASKS.PRIORITY="GOOD"
(TASKS is the table used by the query)
Here is the code that executes currently when they push the report button:
Dim stDocName As String
stDocName = "zLoad0Priority"
DoCmd.OpenReport stDocName, acPreview
Ideas?
THANKS