Hi
I changed the Search Controls to be Combobox's Looking for the values stored in tblMain.
I modified the Code on the Search button to use the following :-
Code:
Private Sub Search_Click()
On Error GoTo Search_Click_Error
Dim strCrit As String
If Len(Me.txtGIO & vbNullString) > 0 Then
strCrit = strCrit & "([GIOCode] = " & Me.txtGIO & ") AND "
End If
If IsDate(Me.txtMonth) Then
strCrit = strCrit & "([MonthEnding] >= #" & Format(Me.txtMonth, "dd/mm/yyyy") & "#) AND "
End If
If strCrit > "" Then
strCrit = Left(strCrit, Len(strCrit) - 5)
DoCmd.OpenForm "frmSearch", acNormal, , strCrit
End If
On Error GoTo 0
Exit Sub
Search_Click_Error:
MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure Search_Click, line " & Erl & "."
End Sub
Your tblMain has Multiple Repeating Groups which should I believe be normalised.