If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Setting Multiple Options for Execute

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-21-05, 17:26
Larry Dumoulin Larry Dumoulin is offline
Registered User
 
Join Date: Jan 2005
Posts: 40
Setting Multiple Options for Execute

I'm trying to figure out how to set more than one option for

DB.Execute - such as dbFailOnError and dbSeeChanges at the same time, but for the life of me I cannot figure out or find a reference that helps with this rather simple question. Does anyone have an answer?
Reply With Quote
  #2 (permalink)  
Old 09-22-05, 12:35
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
I have no idea what DB.Execute is - it certainly isn't SQL. Looks like you posted in the wrong forum!
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #3 (permalink)  
Old 09-23-05, 09:27
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Quote:
Originally Posted by Larry Dumoulin
I'm trying to figure out how to set more than one option for

DB.Execute - such as dbFailOnError and dbSeeChanges at the same time, but for the life of me I cannot figure out or find a reference that helps with this rather simple question. Does anyone have an answer?
DB.Execute - DAO - DB is (presumably) an instantiated DAO DAtabase object.

Never tried for this particular object and method but since these constants are integers you can generally sum them

Code:
 
DB.Execute "UPDATE MyTable Set MyCol = 'MyVal'", dbFailOnError + dbSeeChanges
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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