kevinh2320
Board Regular
- Joined
- May 13, 2016
- Messages
- 61
I have the code below that works fine but there is one aesthetic operational change I need assistance with. The line highlighted below runs an append query with a parameter that requires the user to enter a date [Enter date letters will be mailed for this letter run - Ex: 3/2/2020]. While the Enter Parameter value box is on screen the query is displayed behind it. Is there a way to just display the Entry Parameter Value box prompting for the date but hide the query? Thanks for any help.
Private Sub process_data_for_review_Click()
If MsgBox("This action will process loaded data and setup for review. Do you want to continue?", vbYesNo + vbQuestion) = vbYes Then
DoCmd.SetWarnings False
DoCmd.OpenQuery "q-archive-last-run-agingRpt-data-for-comparison"
DoCmd.OpenQuery "q-delete-t-last-run-data-for-comparison-temp"
DoCmd.OpenQuery "q-append-last-run-agingRpt-data-TO-t-last-run-comparison-temp"
DoCmd.OpenQuery "q-delete-t-current-run-all-records-needing-review"
DoCmd.OpenQuery "q-append-current-run-all-records-TO-t-current-needing-review"
DoCmd.OpenQuery "q-update-review-Shorefish-AND-PUCPs-accts"
DoCmd.Close acQuery, "q-archive-last-run-agingRpt-data-for-comparison"
MsgBox ("Process Complete!")
Else
Exit Sub
End If
End Sub
Private Sub process_data_for_review_Click()
If MsgBox("This action will process loaded data and setup for review. Do you want to continue?", vbYesNo + vbQuestion) = vbYes Then
DoCmd.SetWarnings False
DoCmd.OpenQuery "q-archive-last-run-agingRpt-data-for-comparison"
DoCmd.OpenQuery "q-delete-t-last-run-data-for-comparison-temp"
DoCmd.OpenQuery "q-append-last-run-agingRpt-data-TO-t-last-run-comparison-temp"
DoCmd.OpenQuery "q-delete-t-current-run-all-records-needing-review"
DoCmd.OpenQuery "q-append-current-run-all-records-TO-t-current-needing-review"
DoCmd.OpenQuery "q-update-review-Shorefish-AND-PUCPs-accts"
DoCmd.Close acQuery, "q-archive-last-run-agingRpt-data-for-comparison"
MsgBox ("Process Complete!")
Else
Exit Sub
End If
End Sub