Minty
AWF VIP
- Local time
- Today, 12:15
- Joined
- Jul 26, 2013
- Messages
- 10,671
You are missing a bracket after the =8 .
This will run painfully slowly once you get more than a few hundred records.
If you made all the text boxes combo's that only had valid values in them you could remove the Like clauses completely and simply use something like;
Which allows for nothing being selected in the combo box.
Also if this code is in the form you are running it from you can simplify further to
This will run painfully slowly once you get more than a few hundred records.
If you made all the text boxes combo's that only had valid values in them you could remove the Like clauses completely and simply use something like;
Code:
"AND (Scans.Engine = " & (Forms!frmMain!cmbEngine) & " OR " & (Forms!frmMain!cmbEngine) & " Is Null )" & _
Which allows for nothing being selected in the combo box.
Also if this code is in the form you are running it from you can simplify further to
Code:
"AND (Scans.Engine = " & Me.cmbEngine & " OR " & Me.cmbEngine & " Is Null ) " & _