G
Guest
Hi
I need to say if there is no such date, then to be able to go and retry until it will find a matched DATE.
Thanks
strRepDate = InputBox("Please enter the Report's Date you wish to view", "View BPL Report by date"
If IsDate(strRepDate) = False The
MsgBox "Please enter a date as 1/1/04", vbOKOnl
Els
If strRepDate = CStr(strRepDate) Then
strDocName = "rptMasterBPLReport
strWhere = "[IncidentDate] = #" & strRepDate & "#
DoCmd.OpenReport strDocName, acViewPreview, , strWher
End If
I need to say if there is no such date, then to be able to go and retry until it will find a matched DATE.
Thanks
strRepDate = InputBox("Please enter the Report's Date you wish to view", "View BPL Report by date"
If IsDate(strRepDate) = False The
MsgBox "Please enter a date as 1/1/04", vbOKOnl
Els
If strRepDate = CStr(strRepDate) Then
strDocName = "rptMasterBPLReport
strWhere = "[IncidentDate] = #" & strRepDate & "#
DoCmd.OpenReport strDocName, acViewPreview, , strWher
End If