R
ragsman via AccessMonster.com
Hi, I have this query in VB for an afterupdate event
strFilter = "([ch_request] Like '*" & [txtTracking] & "*') and ([frFixed] =
[fix complete])"
Me.Filter = strFilter
the idea is to change the query based on the values of a 2 state option group
[frFixed] which is either 0 or -1 compared to the field [fix complete] from
the table.
This query works, but it prompts me for the values of [frFixed] instead of
taking it from the option group value on the form. I know the value is there,
because I can output it with
MsgBox ([frFixed])
How can I make this query use the value of the option group [frFixed]
without manually entering it? there may be improper sql syntax here, too.
Thanks,
Mark
strFilter = "([ch_request] Like '*" & [txtTracking] & "*') and ([frFixed] =
[fix complete])"
Me.Filter = strFilter
the idea is to change the query based on the values of a 2 state option group
[frFixed] which is either 0 or -1 compared to the field [fix complete] from
the table.
This query works, but it prompts me for the values of [frFixed] instead of
taking it from the option group value on the form. I know the value is there,
because I can output it with
MsgBox ([frFixed])
How can I make this query use the value of the option group [frFixed]
without manually entering it? there may be improper sql syntax here, too.
Thanks,
Mark