Hi
I use the following code to run a report showing selected dates,
Private Sub Command7_Click()
If Not IsNull(Me.txtFromDate) And IsNull(Me.txtToDate) Then
MsgBox "You must enter a To Date, please try again.", vbCritical
Me.txtToDate.SetFocus
Exit Sub
End If
DoCmd.OpenReport "Select Date", acViewPreview
End Sub
It works fine apart from it does not show any fields when I select any dates in April 2005.
Does anyone know why it is doing this? Not selecting any field with current month in, new to me!
Many thanks
Keith
I use the following code to run a report showing selected dates,
Private Sub Command7_Click()
If Not IsNull(Me.txtFromDate) And IsNull(Me.txtToDate) Then
MsgBox "You must enter a To Date, please try again.", vbCritical
Me.txtToDate.SetFocus
Exit Sub
End If
DoCmd.OpenReport "Select Date", acViewPreview
End Sub
It works fine apart from it does not show any fields when I select any dates in April 2005.
Does anyone know why it is doing this? Not selecting any field with current month in, new to me!
Many thanks
Keith