Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Ado / Adox ?


YAYY!!
It's working now. Thanks a lot !!!!

K Dales Wrote:
I just replied to your previous post, will copy it he

Either you do not have a new record created when you are trying th
update,
or else Access is locking it from you, preventing the update.

Did you remember to call the AddNew method of the recordset? If not
you
have not yet created the space for the new record, so when you try t
update
you run into the EOF. This would give the error message you ar
seeing.

If this is the case, make sure your code does the following afte
opening
the recordset:
Recordset1.AddNew 'optional: add field list and value list here, or:
' you will need code here to initialize all the fields in the ne
record
Recordset1.Update
....

A couple other things:
- Be sure to Update before any MoveNext, otherwise you will move pas
the
end of the file.
- Make sure your recordset's LockType allows updating and is no
allowing
Access to lock the record or table on you, preventing any updates.
suggest
using adLockPessimistic to ensure you have full possession of tha
record
until you actually update it.

For all you ever wanted to know about ADO,
http://msdn.microsoft.com/library/de...dooverview.asp

HTH - K Dales



"silvest" wrote:


anyone has any ideas ?


--
silvest


------------------------------------------------------------------------
silvest's Profile

http://www.excelforum.com/member.php...o&userid=14662
View this thread

http://www.excelforum.com/showthread...hreadid=275742



--
silves
-----------------------------------------------------------------------
silvest's Profile: http://www.excelforum.com/member.php...fo&userid=1466
View this thread: http://www.excelforum.com/showthread.php?threadid=27574

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ado / Adox ? silvest[_20_] Excel Programming 1 November 6th 04 09:55 PM
Ado / Adox ? silvest[_17_] Excel Programming 2 November 6th 04 09:35 PM
Ado / Adox ? silvest[_19_] Excel Programming 0 November 6th 04 05:53 PM
Ado / Adox ? silvest[_18_] Excel Programming 1 November 5th 04 11:22 PM


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"