David C. Holley said:
Amazing what spending some time in an Irish Pub or better yet a
Taverna will do to jog the memory. I believe that the SetOption
method is what you're looking for. I scanned the Help Topic breifly,
but it does include a mention about Confirming Action Queries. The
topic with the info is entitled 'Set Options From Visual Basic' and
includes the various options and equivalent string values to access
the option using SetOption and GetOption. From there, if you're all
macro based, its just a matter creating an AutoExec macro to call the
VBA code that sets the value.
You can set options from Visual Basic, all right, but it's a potentially
dangerous and often ill-mannered thing to be doing. A user's personal
preferences as to options, like that of display resolution (which is
another thing that is often asked in these newsgroups), should be
respected by the developer. It's all well and good to say, "I'll just
change these options while my application runs, and then change them
back when it closes." But what happens if the application crashes
without closing properly? The options chosen by the developer, not the
user, remains in place, affecting other applications.
And even if that doesn't happen, the user may be confounded by behavior
in this particular database that is not what they expect. A use who s
familiar with Access and knows how he has set his options may reasonably
expect this application to conform to those options. He may be cavalier
about running delete queries, because he knows he'll have a chance to
undo them if they turn out to delete all records in the table by
mistake. Imagine his shock when he finds that >poof!< the warning he
had counted upon didn't appear.