Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 30th, 2005, 01:25 PM
ghadley_00@yahoo.com
Guest
 
Posts: n/a
Default Run Update Query silently in background

I have a MS access 200 DB in which I have an update query which
repalces all the " " with ''" in a field. I would like the update query
to run in the background, and not ask the user for any perrmissions. I
was thinking to run the query as part of the autoexec macro.

can anyone recommend a way that I can have the update query run in the
background? I don't see an obvious way to set the SetWarnings command
for the query.

Any help would be greatly appreciated.

Best wishes,

George
ghadley_00@yahoo.com

  #2  
Old December 30th, 2005, 01:55 PM
Rick Brandt
Guest
 
Posts: n/a
Default Re: Run Update Query silently in background

ghadley_00@yahoo.com wrote:[color=blue]
> I have a MS access 200 DB in which I have an update query which
> repalces all the " " with ''" in a field. I would like the update
> query to run in the background, and not ask the user for any
> perrmissions. I was thinking to run the query as part of the autoexec
> macro.
>
> can anyone recommend a way that I can have the update query run in the
> background? I don't see an obvious way to set the SetWarnings command
> for the query.
>
> Any help would be greatly appreciated.
>
> Best wishes,
>
> George
> ghadley_00@yahoo.com[/color]

CurrentDB.Execute "QueryName", dbFailOnError

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #3  
Old December 30th, 2005, 02:15 PM
Steve
Guest
 
Posts: n/a
Default Re: Run Update Query silently in background

Another way to do it is to use (in VBA):
On Error Resume Next
DoCmd.OpenQuery "qryName"

  #4  
Old December 30th, 2005, 03:25 PM
Rick Brandt
Guest
 
Posts: n/a
Default Re: Run Update Query silently in background

Steve wrote:[color=blue]
> Another way to do it is to use (in VBA):
> On Error Resume Next
> DoCmd.OpenQuery "qryName"[/color]

I don't believe that would eliminate warnings and confirmation prompts.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #5  
Old December 30th, 2005, 04:35 PM
Steve
Guest
 
Posts: n/a
Default Re: Run Update Query silently in background

Sorry, I meant:
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryName"
DoCmd.SetWarnings True

Don't know what I was thinking when I wrote the On Error Resume Next
bit.

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles