E
eric
Hello,
On my Access 2000 form, there are 20 fixed-length text
fields coming from one table. In the traditional search,
I would code it something like this:
strCriteria = "[TextField1] like '*" & [UserInputItem]
& "*'"
Set rst = Me.Recordset.Clone
Me.RecordsetClone.FindFirst strCriteria
If rst.NoMatch Then
MsgBox "No matching entries"
rst.Bookmark = varBookmark
Else
MsgBox "found it!"
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
This will only search TextField1, record for record, until
it finds the UserInputItem or eof is reached.
I would like it to loop the search column from TextField1
to TextField20 on record1 first before moving to the next
record until eof or UserInputItem found. To top things
off, I also need a FindNext feature.
Any idea how this can be done? Any input is greatly
appreciate!
eric
On my Access 2000 form, there are 20 fixed-length text
fields coming from one table. In the traditional search,
I would code it something like this:
strCriteria = "[TextField1] like '*" & [UserInputItem]
& "*'"
Set rst = Me.Recordset.Clone
Me.RecordsetClone.FindFirst strCriteria
If rst.NoMatch Then
MsgBox "No matching entries"
rst.Bookmark = varBookmark
Else
MsgBox "found it!"
Me.Bookmark = Me.RecordsetClone.Bookmark
End If
This will only search TextField1, record for record, until
it finds the UserInputItem or eof is reached.
I would like it to loop the search column from TextField1
to TextField20 on record1 first before moving to the next
record until eof or UserInputItem found. To top things
off, I also need a FindNext feature.
Any idea how this can be done? Any input is greatly
appreciate!
eric