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

I am uploading data from Excel to Oracle, in which Oracle has a primary key.
I am using a filesearch to get all the files from a folder and upload them to
Oracle, but I need to check the primary key to prevent errors. Already tried
rs.Addnew, the rest of my code, then On error goto to to skip the rs.Update,
but on the next file/iteration of my loop I get an error at rs.Addnew due to
it already being called. Is there a way to "close" rs.Addnew, such as
rs.Delete, or to check if it is "open" (there is a blank row waiting to be
filled) and skip over recalling rs.Addnew? 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
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 11:56 AM.

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

About Us

"It's about Microsoft Excel"