I have a keyword search button on my databases footer bar which when clicked opens a pop-up box that you can type a key word into. When the keyword is entered it put it into a query that filters my form to that keyword in several fields. Problem is that since my upgrade to 2007, it only works the first time. If you try to use it again it does not display the pop-up box and just re-filters for the first work you typed. The only way around this is a full shut down and restarts which is getting annoying! I did not write this code and I am not sure how to fix it, any help would be greatly appreciated! Code is below.
Thanks
Thanks
Code:
Private Sub Keyword_Search_Click() On Error GoTo Err_Keyword_Search_Click Dim stLinkCriteria As String 'DoCmd.Close acForm, "frmDescription" Forms("frmDescription").Refresh 'DoCmd.Close acForm, Me.Name DoCmd.OpenForm "frmDescription", , "qryKeyword", stLinkCriteria Exit_Keyword_Search_Click: Exit Sub Err_Keyword_Search_Click: MsgBox Err.Description Resume Exit_Keyword_Search_Click End Sub
Comment