I have a search form with a couple of different criteria that has a subform that displays the results. I have had no problems using strSQL to change the query based on the user input, but I cannot get the subform to requery or refresh from the cmdButton_click
subroutine:
Dim strSQL As String
If Not BuildSQLString(strSQL) Then
MsgBox "There was a problem with your search"
Exit Sub
End If
CurrentDb.QueryDefs("qrySearchT".SQL = strSQL
Me!findTG_3_0sub.Requery
The QueryDefs works, but the requery just won's work.
I've searched through the forum ad-nauseum for this, and have tried everything, but I still can't get this to work.
Any help would be greatly appreciated!!!
Thanks,
Brian
subroutine:
Dim strSQL As String
If Not BuildSQLString(strSQL) Then
MsgBox "There was a problem with your search"
Exit Sub
End If
CurrentDb.QueryDefs("qrySearchT".SQL = strSQL
Me!findTG_3_0sub.Requery
The QueryDefs works, but the requery just won's work.
I've searched through the forum ad-nauseum for this, and have tried everything, but I still can't get this to work.
Any help would be greatly appreciated!!!
Thanks,
Brian