PC Review


Reply
Thread Tools Rate Thread

Combining an update query with a parameter query

 
 
jenster84
Guest
Posts: n/a
 
      20th Oct 2007
I wanted to know how you can update data in a table using the update query
and a parameter query.

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      20th Oct 2007
How did you want to run this update query?

In query design, you can just put your parameter in the query.
To run it programmatically, you can then use RunSQL in a macro or code.

A better programmatic approach might be to build the SQL statement in code,
concatenating the parameter value into the string. Then Execute the string
itself: you don't need a saved query. The advantage is that you know whether
it worked or not. Here's an example:
Action queries: suppressing dialogs, while knowing results
at:
http://allenbrowne.com/ser-60.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"jenster84" <u38406@uwe> wrote in message news:79f3d0cc0f520@uwe...
>I wanted to know how you can update data in a table using the update query
> and a parameter query.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining a Select query and an Update query =?Utf-8?B?SmFhcCBIYXJ0b2c=?= Microsoft Access Queries 1 9th Jul 2007 03:42 AM
parameter value in Update query =?Utf-8?B?dHJveQ==?= Microsoft Access Queries 3 2nd May 2006 02:49 PM
Combining two fields in an update query =?Utf-8?B?TGlzYUs=?= Microsoft Access Queries 2 21st Mar 2006 08:28 PM
UPDATE query asking for parameter Lisa Microsoft Access Queries 3 18th Feb 2004 10:20 PM
Combining tables in an update query Avid Reader Microsoft Access Queries 2 19th Jan 2004 09:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 PM.