|
-
May 27th, 2005, 07:33 AM
#1
Appending a database -- Says EOF reached, and cant add
Using Access 2002 - VBA
How could I add a new record in the table in my database? I want to input information from a form, but it doesnt have enough rows to handle the information.
It keeps saying file is at EOF or BOF.
Last edited by kfcSmitty; May 27th, 2005 at 11:42 AM.
-
May 27th, 2005, 10:01 AM
#2
Re: Fix me!! You know you want to
*edit*
just look at above post, all over problems have been fixed
Last edited by kfcSmitty; May 27th, 2005 at 11:35 AM.
-
May 27th, 2005, 10:35 AM
#3
Re: Fix me!! You know you want to
Why even issue a MoveFirst? When a recordset is opened, it is always at the first record unless there are no records (obviously). But if you insist, just make sure there are records in the recordset.
VB Code:
RsStorage.Open "Splits", cn, adOpenKeyset, adLockPessimistic, adCmdTable
If Not (rsStorage.BOF And rsStorage.EOF) Then 'ie the table is empty
RsStorage.MoveFirst
End If
-
May 27th, 2005, 10:48 AM
#4
Re: Fix me!! You know you want to
*edit* just look at the first post -- everything else has been solved
Last edited by kfcSmitty; May 27th, 2005 at 11:36 AM.
-
May 27th, 2005, 12:57 PM
#5
Re: Appending a database -- Says EOF reached, and cant add
EOF or BOF is not an issue that should matter if you are adding a record.
Post your code so we can see the problem.
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
|