Could someone look at this and help with the proper formating?
strWhere = strWhere & " (tblEntry.tblPilot) Like '*" & Me.cboPilot & "*' AND & (tblEntry.tblDate) like '#" & Me.txtStartDate & "#' and"
I want the user to enter a pilot name (from a dropdown) and a date as his search criteria. Then using those 2 pieces of information search my table for any and all occurances and fill a list box with those results.
I can easily find all pilot names which match but I cannot quite figure out how to incorporate the second search criteria into the mix.
Any help would be great. I did spend some time searching the FORUM for some help on this but as you can see I am here now asking for help.
strWhere = strWhere & " (tblEntry.tblPilot) Like '*" & Me.cboPilot & "*' AND & (tblEntry.tblDate) like '#" & Me.txtStartDate & "#' and"
I want the user to enter a pilot name (from a dropdown) and a date as his search criteria. Then using those 2 pieces of information search my table for any and all occurances and fill a list box with those results.
I can easily find all pilot names which match but I cannot quite figure out how to incorporate the second search criteria into the mix.
Any help would be great. I did spend some time searching the FORUM for some help on this but as you can see I am here now asking for help.