I am trying to use the filter method with a form
Using the Access/VBA documentation I have created a filter which looks like this
this works fine.
I have tried using the same method including a varible based on a control
it looks like this
or
and neither works despite the fact that when I debug.print the string is the same string as if I hard coded it.
any suggestions.
thanks greatly!!
Using the Access/VBA documentation I have created a filter which looks like this
Code:
me.filter = "lngCaseID = 18905" me.filter on = true
this works fine.
I have tried using the same method including a varible based on a control
it looks like this
Code:
Me.Filter = """lngCaseID = " & Forms.frmUrgentTriage1.tboCaseID _ & """" me.filter on = true
Code:
thisFilter = """lngCaseID = " & Forms.frmUrgentTriage1.tboCaseID & """" me.filter = thisFilter me.filter on = true
any suggestions.
thanks greatly!!
Comment