Re: Update Query Confirmation
From: Brandon M (awktane_at_telus.net)
Date: 02/21/04
- Next message: Duane Hookom: "Re: Report - grouping - sum"
- Previous message: bdehning: "Re: Move Field Data to New Field"
- In reply to: Ken Snell: "Re: Update Query Confirmation"
- Next in thread: Ken Snell: "Re: Update Query Confirmation"
- Reply: Ken Snell: "Re: Update Query Confirmation"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 21 Feb 2004 16:37:39 GMT
Alright. The second way kept on giving me an error of Too Few Parameters or
something like that. I am assuming that it is because the SQL statement is
not formatted as required somehow... Anyways I saved the query and now am
not sure how to refer to it in the execute statement. I am trying the second
way because I need error checking of some kind and if I am not mistaken the
DoCmd.RunSQL does not allow for that.
"Ken Snell" <kthissnellis9@notcomcast.realnet> wrote in message
news:%23ow5LMD%23DHA.2168@TK2MSFTNGP12.phx.gbl...
> Two ways:
>
> (1) Precede your DoCmd.RunSQL command with this code step to turn them
off:
> DoCmd.SetWarnings False
>
> Then succeed your command with this code step to turn them back on:
> DoCmd.SetWarnings True
>
>
> (2) Use the CurrentDb.Execute "SQLStatement" code step to run the query.
If
> you want to have it "fail on error", then use this line:
> CurrentDb.Execute "SQLStatement", dbFailOnError
>
>
> --
> Ken Snell
> <MS ACCESS MVP>
>
> "Brandon Mackie" <awktane@telus.net> wrote in message
> news:sZAZb.42444$Hy3.30550@edtnps89...
> > I am incredibly new to access and trying to learn as I go. I have set up
a
> > few queries one of which is executed by a docmd.runsql in visual basic.
> > Because it is an update query it asks for confirmation every time it
wants
> > to update the table. Is there any way to get around this?
> >
> >
>
>
- Next message: Duane Hookom: "Re: Report - grouping - sum"
- Previous message: bdehning: "Re: Move Field Data to New Field"
- In reply to: Ken Snell: "Re: Update Query Confirmation"
- Next in thread: Ken Snell: "Re: Update Query Confirmation"
- Reply: Ken Snell: "Re: Update Query Confirmation"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|