VBfreak
Jan 25th, 2000, 12:43 AM
This is the syntax the words in brackets are optional but I had problem leaving blanks so I used them.
Recordset.Find(Criteria As String, [SkipRecords As Long], [SearchDirection As SearchDirectionEnum = adSearchForward], [Start])
Criteria is a string with operators like 'EMP_NAME = DAVE' and you can use wild card operators as well like ? and *.
SkipRecords is self-explanatory
SearchDirection is self-explanatory
Start is where to start like adBookmarkFirst then you must logicaly use adSearchForward since you are at the first record of the Recordset.
Make sure that your recordset cursor type is not adForwardOnly meaning that you can only advance in the record set.
Hope this will help
Recordset.Find(Criteria As String, [SkipRecords As Long], [SearchDirection As SearchDirectionEnum = adSearchForward], [Start])
Criteria is a string with operators like 'EMP_NAME = DAVE' and you can use wild card operators as well like ? and *.
SkipRecords is self-explanatory
SearchDirection is self-explanatory
Start is where to start like adBookmarkFirst then you must logicaly use adSearchForward since you are at the first record of the Recordset.
Make sure that your recordset cursor type is not adForwardOnly meaning that you can only advance in the record set.
Hope this will help