Ok, so I'm by no means good at VBA, and am tryign to make use of some code found on thei nterweb which I reckon does exactly what I want. My problem is that now I've moved the code into my database and changed what I thought were all the appropriate parts and removed the bits I don't want it is broken (of course!).
So the code the debugger points to is:
(I've added the debug section, and made the sqlinput variable as part of tryign to get it to work)
The expression quoted as wrong is '[ConsNo] a999x' which is the product of:
If anyone can help it would be greatly appreciated - my progress has been pretty glacial today!
So the code the debugger points to is:
Code:
sqlinput = "SELECT * FROM FileInfQry " & BuildFilter
Debug.Print sqlinput
Me.FileInfSubForm.Form.RecordSource = sqlinput
The expression quoted as wrong is '[ConsNo] a999x' which is the product of:
Code:
' Check for Concession Number
If Me.txtConcessionNo > "" Then
varWhere = varWhere & "[ConcessionNo] " & Me.txtConcessionNo & " And "
End If
Comment