C
Chris
Hi,
Here is my code:
ddate = 4/1/2007
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("SELECT max(UploadRun)as [MaxRun] FROM
CRSFILE_HISTORY where DateCreated =#" & dDate & "#")
If rst.EOF = True And rst.BOF = True Then
GetRunNumber = 1
End If
rst.MoveLast
rst.MoveFirst
If rst.RecordCount = 0 Then
GetRunNumber = 1
rst.Close
Set rst = Nothing
Exit Function
End If
EOf and BOF are not evaluating to true
recordcount gives me 1.
This table is completely empty.
When I change the select to : select * from crsfile_history, the
recordcount evaluates to 1.
If I put a record into the table that will give a record back it does
provide a record and I can read the values (with additional code). So I don't
think the syntax is wrong.
Please advise.
Chris
Here is my code:
ddate = 4/1/2007
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("SELECT max(UploadRun)as [MaxRun] FROM
CRSFILE_HISTORY where DateCreated =#" & dDate & "#")
If rst.EOF = True And rst.BOF = True Then
GetRunNumber = 1
End If
rst.MoveLast
rst.MoveFirst
If rst.RecordCount = 0 Then
GetRunNumber = 1
rst.Close
Set rst = Nothing
Exit Function
End If
EOf and BOF are not evaluating to true
recordcount gives me 1.
This table is completely empty.
When I change the select to : select * from crsfile_history, the
recordcount evaluates to 1.
If I put a record into the table that will give a record back it does
provide a record and I can read the values (with additional code). So I don't
think the syntax is wrong.
Please advise.
Chris