Microsoft
Software
Hardware
Network
Question : using three different where conditions to filter form
i need to filter a form based on 3 conditions...
i can get them to work in 2 different parts but not together... please advise.
my first filter is :
DoCmd.OpenForm "joblist", , , "[user] =" & Me.UserList
2nd filter is :
DoCmd.OpenForm "joblist", , , "[completedate] >= #" & Me.CompleteDateFrom & "# And [completedate] <= #" & Me.CompleteDateTo & "#"
Can anyone tell me how to get these in the same line. everytime i try i get Type Mismatch
Thanks
Wayne
Answer : using three different where conditions to filter form
Did you try:
DoCmd.OpenForm "joblist", , , "[user] =" & Me.UserList & " And [completedate] >= Me.CompleteDateFrom And [completedate] <= Me.CompleteDateTo
especially if those form controls are formatted as Date.
Random Solutions
Connecting to a sql database via odbc
Why is ComboBox font bold after a Create()
checkbox and listctrl
How do I remove a Domain Controller from Active Directory
C# WebService (tcp.soap) from Java
Need to return " "
Graduated Commission Scale
restoring a .bak file SQL SERVER 2005
A serious bug in the MFC exception handling on Windows CE
How do I limit concurrent IE sessions for a Citrix user on Windows 2003 server?