M
Michelle
I have a query that has a from so the user can us the Date Picker to pick the
Start and End date for the query.
It works, however I also have a report that is based of the query.
On my Switchboard I have to to open the form they enter the days and then it
runs the query however if I have it open the report it just gives me two
parmater boxes for the start and end date.
Here is my code for the OK box on the form (the code that runs the query)
Private Sub cmdOK_Click()
If IsNull(sDate) Or IsNull(eDate) Then
MsgBox "You must enter a Sart and End Date." _
& vbCrLf & "Please try again.", vbExclamation, _
"More information required."
Exit Sub
End If
DoCmd.OpenQuery "qurTimeCardDates", acViewNormal, acEdit
DoCmd.close acForm, "frmDates"
End Sub
How would I get this to open the from then produce the report...can it even
be done.
Start and End date for the query.
It works, however I also have a report that is based of the query.
On my Switchboard I have to to open the form they enter the days and then it
runs the query however if I have it open the report it just gives me two
parmater boxes for the start and end date.
Here is my code for the OK box on the form (the code that runs the query)
Private Sub cmdOK_Click()
If IsNull(sDate) Or IsNull(eDate) Then
MsgBox "You must enter a Sart and End Date." _
& vbCrLf & "Please try again.", vbExclamation, _
"More information required."
Exit Sub
End If
DoCmd.OpenQuery "qurTimeCardDates", acViewNormal, acEdit
DoCmd.close acForm, "frmDates"
End Sub
How would I get this to open the from then produce the report...can it even
be done.