If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > obtaining parameters from a combobox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-04, 17:34
Edadcon Edadcon is offline
Registered User
 
Join Date: Oct 2004
Posts: 13
Question obtaining parameters from a combobox

Hello all,
I want to obtain the parameter for a parametrized query from a combobox.
I'm using Access 2000 and I am an experienced Query designer,but I miss the knowledge for writing the few lines code that can do this trick.
Can someone of you help me out?
Example :
table1
locationnumber (autonum)(key)
city (text)
Halltype (num)

table2
Hallnumber (autonum)(key)
description (text)

Query:
PARAMETERS hallt Text(25);
SELECT *
FROM table1, table2
WHERE table1.halltype = table2.Hallnumber
AND table2.description = hallt;

If I open a report based on this query I have to enter the correct description by hart. Therefore it would be much better if I had a combo box that shows the available descriptions so that I can select the one for my query.
Many thanks in advance for your help
Robert
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On