I had code written in 2003 that works fine. It doesn't work in 2007.
It is code that filters my query
In a form
I have an option group (to choose which field to filter on)
An unbound control - (txtKeyword)
they type the word they are looking for then click the option button of their choice
Here is the code:
if optchoice=1 then
DoCmd.ApplyFilter "qfltBidItems", "[Item] Like '*'&[Forms]![frmMasterBidItems]![txtKeyword]&'*'"
Elseif optChoice=2 then
DoCmd.ApplyFilter "qfltBidItems", "[ItemCode] Like '*'&[Forms]![frmMasterBidItems]![txtKeyword]&'*'"
ElseIf optchoice=3 then
DoCmd.ApplyFilter "qfltBidItems", "[SpecSection] Like '*'&[Forms]![frmMasterBidItems]![txtKeyword]&'*'"
End if
I haven't read that any of these actions are not now available in 07. Any suggestions?
It is code that filters my query
In a form
I have an option group (to choose which field to filter on)
An unbound control - (txtKeyword)
they type the word they are looking for then click the option button of their choice
Here is the code:
if optchoice=1 then
DoCmd.ApplyFilter "qfltBidItems", "[Item] Like '*'&[Forms]![frmMasterBidItems]![txtKeyword]&'*'"
Elseif optChoice=2 then
DoCmd.ApplyFilter "qfltBidItems", "[ItemCode] Like '*'&[Forms]![frmMasterBidItems]![txtKeyword]&'*'"
ElseIf optchoice=3 then
DoCmd.ApplyFilter "qfltBidItems", "[SpecSection] Like '*'&[Forms]![frmMasterBidItems]![txtKeyword]&'*'"
End if
I haven't read that any of these actions are not now available in 07. Any suggestions?