F
Fredrated
I am having a problem with a query that returns no records.
For example, this query may return no records:
SELECT RMDocuments.Directory, RMDocuments.User FROM RMDocuments WHERE
(((RMDocuments.DOCUMENT_FILENAME)="TestFile.doc"));
When I set a recordset to this query, as in
strSQL = "SELECT RMDocuments.Directory, RMDocuments.User FROM RMDocuments
WHERE (((RMDocuments.DOCUMENT_FILENAME)=""TestFile.doc""));"
Set rsSrch = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset)
There is in fact no file by the name of "TestFile.doc", yet rsSrch.BOF and
rsSrch.EOF both return FALSE, leading me to believe that one or more records
were returned, then when I execute rsSrch.MoveFirst, I get "No current
record"!
What am I doing wrong? I thought that BOF=False and EOF=False would mean
that there was at least one record returned.
Thanks in advance for any help.
Fred
For example, this query may return no records:
SELECT RMDocuments.Directory, RMDocuments.User FROM RMDocuments WHERE
(((RMDocuments.DOCUMENT_FILENAME)="TestFile.doc"));
When I set a recordset to this query, as in
strSQL = "SELECT RMDocuments.Directory, RMDocuments.User FROM RMDocuments
WHERE (((RMDocuments.DOCUMENT_FILENAME)=""TestFile.doc""));"
Set rsSrch = CurrentDb.OpenRecordset(strSQL, dbOpenDynaset)
There is in fact no file by the name of "TestFile.doc", yet rsSrch.BOF and
rsSrch.EOF both return FALSE, leading me to believe that one or more records
were returned, then when I execute rsSrch.MoveFirst, I get "No current
record"!
What am I doing wrong? I thought that BOF=False and EOF=False would mean
that there was at least one record returned.
Thanks in advance for any help.
Fred