Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 18: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

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