?
Solved

set a query parameter to a form control

Posted on 2011-09-11
7
Medium Priority
?
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 1400 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

770 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