A
Alex
How can I re-write the below code to allow users to use wildcards in the
SearchPart field. They'd like to be able to type S* and return all
SearchParts that start with S or type St* and return all SearchParts that
start with St. I'm not sure how to write it. Thanks.
stLinkCriteria = "[Part#]=" & "'" & Me![SearchPart] & "'"
If IsNull(Me.Model) = False Then
stLinkCriteria = stLinkCriteria & "AND [Model#]=" & "'" & Me![Model] & "'"
End If
DoCmd.OpenForm stDocName, , , stLinkCriteria
If IsNull(Me.Model) Then
Forms!NewPartInputfrm!CountRecords = DCount("[Part#]", "AllNewParts",
"[PART#] = [SearchPart]")
Else
SearchPart field. They'd like to be able to type S* and return all
SearchParts that start with S or type St* and return all SearchParts that
start with St. I'm not sure how to write it. Thanks.
stLinkCriteria = "[Part#]=" & "'" & Me![SearchPart] & "'"
If IsNull(Me.Model) = False Then
stLinkCriteria = stLinkCriteria & "AND [Model#]=" & "'" & Me![Model] & "'"
End If
DoCmd.OpenForm stDocName, , , stLinkCriteria
If IsNull(Me.Model) Then
Forms!NewPartInputfrm!CountRecords = DCount("[Part#]", "AllNewParts",
"[PART#] = [SearchPart]")
Else