LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default addnew

Using code rs.AddNew for a recordset, and I have placed the call at the
beginning of my code. I then check to see if the Primary Key is violated, if
not the program proceeds, but if the PK is violated the program goes to the
next record. Since you cannot close rs.AddNew (at least from what I
understand) I must have it outside the loop. If no records with new PKs are
found the program ends. The problem then is that I cannot perform rs.Close
and I get an error message "memory could not be written." Is there a way
around this? Thank you.

Brent
 
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
addnew Brent Excel Programming 2 April 20th 07 06:04 PM
Addnew Brent Excel Programming 1 April 10th 07 03:20 PM
Simultaneous rst.AddNew and rst.Delete from 2 Workbooks Trip[_3_] Excel Programming 0 December 27th 06 08:50 PM


All times are GMT +1. The time now is 03:59 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"