J
JDegnan
I have several forms that have command buttons that action apply filter and
propt the user to enter criteria into a dialog box. Prior to access 2007 you
could click and find one after another. In 2007, once you find your criteria,
the button can no longer be actioned. I have added another command button to
show all records thinking that would clear the filter, but when you click the
search button it comes back up with the original filter. Anyone know of a fix?
Here is the code:
DoCmd.ApplyFilter "", "[Search Query]![PART_NO] Between [Type PN] And
[Type PN]"
If (IsNull(Forms!A_PROGRAM.PART_NO)) Then
Beep
MsgBox "No records match thet criteria!", vbOKOnly, "No Records"
DoCmd.Close acForm, "A_PROGRAM"
End If
DoCmd.OpenForm "A_PROGRAM", acNormal, "", "", , acNormal
propt the user to enter criteria into a dialog box. Prior to access 2007 you
could click and find one after another. In 2007, once you find your criteria,
the button can no longer be actioned. I have added another command button to
show all records thinking that would clear the filter, but when you click the
search button it comes back up with the original filter. Anyone know of a fix?
Here is the code:
DoCmd.ApplyFilter "", "[Search Query]![PART_NO] Between [Type PN] And
[Type PN]"
If (IsNull(Forms!A_PROGRAM.PART_NO)) Then
Beep
MsgBox "No records match thet criteria!", vbOKOnly, "No Records"
DoCmd.Close acForm, "A_PROGRAM"
End If
DoCmd.OpenForm "A_PROGRAM", acNormal, "", "", , acNormal