Advertisement

05.04.2008 at 12:14PM PDT, ID: 23375157
[x]
Attachment Details

Apply query criteria using listed contents of a Form text box

Asked by davidmanjhu in Microsoft Access Database, SQL Query Syntax, Access Forms

Tags: , ,

I wrote a select query in Access in the SQL viewer mode. My query contains the where clause:

WHERE ([Cases].[CloseCode]=[Forms]![devParam]![RsnCodes]);
*Note: I've also tried IN rather than = with the above where clause

*Note that [Cases].[CloseCode] is a column that stores text data with length=2 (e.g. "00" or "16" or "30")

I also have a form named "devParam" which contains a text box named "RsnCodes". I keep this form open when running my query.

I would like to do 2 things. Right now I can't do either.

1) Apply the where filter when someone inserts a single value in the text box. For example, user opens form and enters in "16" (without the quotes) in the text box. User then runs the query to get the results.

2) Apply the where filter when someone inserts a series of values in the text box. For example, user opens form and enters in "00, 16" (without the quotes) in the text box. User then runs the query to get the results.

Since I'm a beginner, I'd prefer not to use VBA at this time, rather stick to select queries, forms, and user prompts. thanks much.Start Free Trial
[+][-]05.04.2008 at 12:19PM PDT, ID: 21496662

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.04.2008 at 02:10PM PDT, ID: 21496937

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 03:20PM PDT, ID: 21497157

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax, Access Forms
Tags: Microsoft, Access, 2003
Sign Up Now!
Solution Provided By: harfang
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.04.2008 at 06:27PM PDT, ID: 21497652

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 07:05PM PDT, ID: 21497755

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.04.2008 at 07:08PM PDT, ID: 21497761

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628