|
-
Jul 17th, 1999, 03:30 AM
#1
Thread Starter
New Member
An error occurs when after MoveFirst if a db is empty. What should I do? Ask if RecordCount=0 before? Another way?
Thanks!
Please, forgive my English, it's horrible!
-
Jul 17th, 1999, 08:50 AM
#2
Junior Member
I haven't found RecordCount to be a reliable property to use. Most often, I find newly initialized recordsets attached to empty tables to have a RecordCount of 4. However, the EOF property does seem to be dependable. So, in my code anywhere it might encounter a recordset like that, you will find something like this:
If Not RecordSet1.EOF Then
RecordSet1.MoveFirst
Else Goto SkipTheWholeDarnThing
Regards,
Dave Todd
------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|