Advertisement
Advertisement
| 06.16.2008 at 07:55AM PDT, ID: 23488336 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: |
'Sample of code that i am using to search and output
'Approach to CSR
If Not IsNull(txtSearchField12) Then
GCriteria4 = GetResults(Me.txtSearchField12, "[ApproachtoCSR]", Me.optSearch)
If GCriteria = "" Then
GCriteria = GCriteria4
Else
GCriteria = GCriteria & " AND " & GCriteria4
End If
End If
'Publisher
If Not IsNull(cboSearchField2) Then
GCriteria5 = GetResults(cboSearchField2.Value, "[Publisher]", Me.optSearch)
If GCriteria = "" Then
GCriteria = GCriteria5
Else
GCriteria = GCriteria & " AND " & GCriteria5
End If
End If
Form_frmInput.RecordSource = "select * from Entry where " & GCriteria & ";"
Form_frmInput.Requery
If Form_frmInput.NewRecord Then
MsgBox "No matching records found. Try less restricted search criteria", vbOKOnly, "No Matches Found"
Else
MsgBox "Results have been filtered.", vbOKOnly, "Search Successful"
DoCmd.Close acForm, "frmSearch"
End If
|