![]() |
|
|
#1
|
|||
|
|||
|
Is there a way to create a parameter query where the user can select from a list, instead of typing in a value, when the "Enter Parameter Value" dialog box appears?
Thanx in advance. |
|
#2
|
|||
|
|||
|
the criteria for a prompt is
Code:
|
|
#3
|
|||
|
|||
|
Hello llkhoutx,
Thank you for responding to my question. Unfortunately, I did not understand your answer where you say "PHP code:" and then list SQL statements. Let me clarify: I am not writing in PHP, but rather creating a simple Access databse, where I am trying to create a parameter query such that the user can select the parameter value from a list, rather than having to type it in. Currently, the SQL behind my query looks like this: SELECT ... FROM ... INNER JOIN ... WHERE (((tblServices.Service)=[Please enter Service])); When this query is run, a dialog box appears requesting the user to type in a value for the field called "Service". I would like that dialog box to contain a list box or combo box, so that the user can select from a list of currently available services. I can accomplish this by writing a VBA module to create my own dialog box or form containing a list box control, but I was wondering if there were a simpler way to do it using a standard Access parameter query. Thank you again for responding to my question. |
|
#4
|
|||
|
|||
|
Code:
A list box row cannot be referenced directly. One would have to store the list box selection in an unbound textbox and then that textbox can be referenced. A combox box name can be referenced. Problems arise with multi-column combo boxes and multi-column list boxes. I'll not address these issues, as they are apparently at issue. Code:
|
|
#5
|
|||
|
|||
|
OK. That gives me some ideas of how to proceed.
Thanks! |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Select value from a list box | Hidenite | Queries | 8 | 01-29-2010 08:31 AM |
| Pass list as parameter to in operator | bliever | Queries | 5 | 11-11-2009 12:15 AM |
| Can't alays select an item from a list box | bomber | Access | 0 | 10-16-2009 08:01 AM |
Select Item from drop down list rather than enter in an input box????
|
jhjarvie | Programming | 8 | 09-24-2009 12:56 PM |
| 2 multi select list boxes on one search form | woodey2002 | Forms | 1 | 02-24-2009 05:20 AM |