J
jez123456
Hi Experts
I have an access adp project connected to a sql server backend database.
I have a search form that the users enter a barcode number then clicks ok.
After clicking ok, the search form closes and a Media form opens on the
entered barcode number
I have tried 2 methods to get this to work but they seem quite slow to
retrieve the record. There are only 2,000 records and the indexing is correct.
1st method
Forms![Media].Filter = "[Barcode] = " & Me.[txtSearch]
Forms![Media].FilterOn = True
2nd method
Set rs = Forms![Media].Recordset.Clone
rs.Find "[Barcode] = '" & Me![txtSearch] & "'"
Forms![Media].Bookmark = rs.Bookmark
Is there a quicker way to achieve this?
Many thanks
I have an access adp project connected to a sql server backend database.
I have a search form that the users enter a barcode number then clicks ok.
After clicking ok, the search form closes and a Media form opens on the
entered barcode number
I have tried 2 methods to get this to work but they seem quite slow to
retrieve the record. There are only 2,000 records and the indexing is correct.
1st method
Forms![Media].Filter = "[Barcode] = " & Me.[txtSearch]
Forms![Media].FilterOn = True
2nd method
Set rs = Forms![Media].Recordset.Clone
rs.Find "[Barcode] = '" & Me![txtSearch] & "'"
Forms![Media].Bookmark = rs.Bookmark
Is there a quicker way to achieve this?
Many thanks