Advertisement

11.21.2007 at 06:04AM PST, ID: 22975387
[x]
Attachment Details

Pass mulitple parameters to query from text box

Asked by pwtucker in Microsoft Access Database

Tags: query, text, pass, parameter, box

Hi Experts,
I am completly at a loss why this is not working.  I am attempting to return records based on user input from an Oracle 10G database.  I have 2 problems, but they are pretty much the same.  All I am trying to do is pass the value of a text box to a query.  Very simple and have done this thousands of times.  However, this time (first time to do with Oracle 10g) when the query is based on the text box on the form it does not return any records.  I can open the query and type the same value into the where clause and it works like a champ.  The field in the database is just a standard text field, so I am not sure what is going on.  The second problem is fairly similiar, but I am trying to pass multiple values from a text box to the query (some like In("AA", "BB", "CC").  I have the query based on a text box like so: In([Forms]![frmMyForm]![MyTextBox]).  I am populating the text box with a select case statement based on what the user selects from a dropdown.  I have tried populating the text box with just the values "AA", "BB", "CC", In("AA", "BB", "CC") and "AA" OR "BB" OR "CC" but none of these work.  Like the other query, I can go and type these values in the where clause and the query works like a champ.

So what am I doing wrong Experts?  Something I thought would be so simple is kicking my tail at the moment and I sure don't want to leave for the Thanksgiving holiday with my tail whipped :)

Thanks for your helpStart Free Trial
[+][-]11.21.2007 at 06:11AM PST, ID: 20327712

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

Zone: Microsoft Access Database
Tags: query, text, pass, parameter, box
Sign Up Now!
Solution Provided By: fanopoe
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.21.2007 at 06:54AM PST, ID: 20328065

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.

 
[+][-]11.21.2007 at 07:36AM PST, ID: 20328391

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.

 
[+][-]11.21.2007 at 07:36AM PST, ID: 20328395

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.

 
[+][-]11.21.2007 at 09:20AM PST, ID: 20329312

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.

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