I have search form that can search by date range. You just give it two dates and it pulls up a report about it. However, I'm not that experienced with VBA and I want to know how to display a msgbox when the user doesn't enter the second date (or one but not the other). Anyway, here's the segment of code.
If Not IsNull(Me.txtDate) Then
strWhere = strWhere & " (tblDocXLS.DATE) Between #" & Me.txtDate & "# AND #" & Me.txtDate2 & "# AND"
End If
I got it from jfgambit on this forum with his really helpful post on search forms. It just makes a string that is put into SQL to filter a table. If you have any suggestions or ideas, I would appreciate it, thanks.
If Not IsNull(Me.txtDate) Then
strWhere = strWhere & " (tblDocXLS.DATE) Between #" & Me.txtDate & "# AND #" & Me.txtDate2 & "# AND"
End If
I got it from jfgambit on this forum with his really helpful post on search forms. It just makes a string that is put into SQL to filter a table. If you have any suggestions or ideas, I would appreciate it, thanks.