As the title says.. I see the documentation on ADODB .Properties, but I’m not really sure how to use it. I need to temporarily enable the Execute to ignore key violations (aka only import one, as the native access queries do with the warning (warning not necessary)).
I’ve tried
Set cnn = CurrentProject.Connection
cnn.Properties("Jet OLEDB:Global Partial Bulk Ops") = 1
cnn.BeginTrans
' do my sql which works
cnn.CommitTrans
However on cnn.Properties(... it produces the following error:
Read-only property value was not set
I’m a little out of my league on this one.. havn’t delved into this stuff before.
If anyone knows of another way to ignore these key violations in VBA without using DoCmd, that would work just as well.
This works for me.
I imagine
CurrentProject.Connectiondoes not work because it is opencnn.state=adStateOpen