Solved

set a query parameter to a form control

Posted on 2011-09-11
7
293 Views
Last Modified: 2012-06-27
How or can I set a query parameter to a form control (combo box selection).  I believe i done it before but im new to Access 2010.  I used previous versions.

Thanks in Advance!!
0
Comment
Question by:IT_newbie01
  • 4
  • 3
7 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 350 total points
ID: 36520200
You mean like this:

SELECT Table1.*
FROM Table1
WHERE (((Table1.FIELD1)=[Forms]![YourFormName]![YourCombBoxName]));


mx
0
 

Author Comment

by:IT_newbie01
ID: 36520229
Yes, but how do i do that at the query level or how do i get to the SQL section of the query to apply that where clause in Access 2010??
0
 

Author Comment

by:IT_newbie01
ID: 36520335
I've requested that this question be closed as follows:

Accepted answer: 0 points for IT_newbie01's comment http:/Q_27302500.html#36520229

for the following reason:

Actually that worked in the design view of the query. &nbsp;I had another query running that was throwing an error.<br /><br />Thanks!
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 75
ID: 36520297
What worked ?
0
 
LVL 75
ID: 36520336
"Actually that worked in the design view of the query."

What worked?  I believe I answered your question.
0
 

Author Closing Comment

by:IT_newbie01
ID: 36520377
You were right.  Thanks.
0
 

Author Comment

by:IT_newbie01
ID: 36520384
I meant to award you the points originally.  I was saying "Actually that worked in the design view of the query." meaning your code worked in the design view of the query .  Thanks!!!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question