troubleshooting Question

Running Access Append Query from VB6

Avatar of rhubarbtwo
rhubarbtwo asked on
Visual Basic Classic
15 Comments1 Solution917 ViewsLast Modified:
I'm executing an Access Append (*1) Query from VB6, the query appends (*1) records to a PK field therefore errors are generated if duplicate entries occur.

If the query is run manually from Access then 2 confirmation dialogs appear, and if confirmed the query runs and only appends (*1) the table with new non-duplicate entries.

In vb the query appears to run, a duplicate entry error occurs, but no new non-duplicate records are added. How can I correct this to work as it does running the query from within Access? I don't want to use a find unmatched query and then an update query if I can do it without.

*1 words edited: changed 'Update' to 'Append'

 
ASKER CERTIFIED SOLUTION
Arthur_Wood

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 15 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros