Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

searching help

Status
Not open for further replies.

tonyjob

Programmer
Nov 20, 2000
25
GB
im searching a field but when no records are found i cant refresh the recordset, im using dao. since i cant refresh the recordset if i test for eof it checkes the old recordset.

this is the code i was using after the search string is put into sqlstmt:

datMem.RecordsetType = 1
datMem.DatabaseName = DatabaseName$
datMem.RecordSource = SQLStmt
datMem.Refresh

any help?


~Tony
 
instead of using the refresh mthod use Requery.
datMem.Requery

ntp

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top