Solved

set a query parameter to a form control

Posted on 2011-09-11
7
310 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 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

756 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