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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Yes No Combo Boxes Queries Filtering as 0 and 1 Instead....work ar
Hi guys,
I have a form with 5 combo boxes, the results of which are passed to a query to display a list of orders. One of the combo boxes is called OrderComplete with a value or either Yes or No obviously determining whether the query shows incomplete orders or not. However, to get the query to work, the OrderComplete Combo box should have the options 0 and 1 instead of yes and no, but this is not ideal as the database users won't know that 0=No and 1=Yes, is there a way around this? Thanks in advance. |
#2
|
|||
|
|||
Ricahrd,
Yes, there is, and it's pretty easy. Whjen you start to make a combo on a form the wizrd kicks in, and if you select to type in the values it allows you to enter two columns like: 0 No 1 Yes then is asks you whether you want to show both columns, or hide the first; opt for the latter, so the user sees Yes/No, but the numeric values are returned to the query. That said, I would have taken another approach: for a yes/no set of possible answers, I would use check boxes; those return True/False (or -1, 0 respectively) to the query, and the user only sees check/no check, and can change the status in one move (vs two for a combo), plus an array of chekcs/no checks is more readable than an array of Yes and No 's. HTH, Nikos Richard Horne wrote: Hi guys, I have a form with 5 combo boxes, the results of which are passed to a query to display a list of orders. One of the combo boxes is called OrderComplete with a value or either Yes or No obviously determining whether the query shows incomplete orders or not. However, to get the query to work, the OrderComplete Combo box should have the options 0 and 1 instead of yes and no, but this is not ideal as the database users won't know that 0=No and 1=Yes, is there a way around this? Thanks in advance. |
#3
|
|||
|
|||
That worked a treat Nikos, thank you very much my friend. "Nikos Yannacopoulos" wrote: Ricahrd, Yes, there is, and it's pretty easy. Whjen you start to make a combo on a form the wizrd kicks in, and if you select to type in the values it allows you to enter two columns like: 0 No 1 Yes then is asks you whether you want to show both columns, or hide the first; opt for the latter, so the user sees Yes/No, but the numeric values are returned to the query. That said, I would have taken another approach: for a yes/no set of possible answers, I would use check boxes; those return True/False (or -1, 0 respectively) to the query, and the user only sees check/no check, and can change the status in one move (vs two for a combo), plus an array of chekcs/no checks is more readable than an array of Yes and No 's. HTH, Nikos Richard Horne wrote: Hi guys, I have a form with 5 combo boxes, the results of which are passed to a query to display a list of orders. One of the combo boxes is called OrderComplete with a value or either Yes or No obviously determining whether the query shows incomplete orders or not. However, to get the query to work, the OrderComplete Combo box should have the options 0 and 1 instead of yes and no, but this is not ideal as the database users won't know that 0=No and 1=Yes, is there a way around this? Thanks in advance. |
#4
|
|||
|
|||
Welcome!
Richard Horne wrote: That worked a treat Nikos, thank you very much my friend. "Nikos Yannacopoulos" wrote: Ricahrd, Yes, there is, and it's pretty easy. Whjen you start to make a combo on a form the wizrd kicks in, and if you select to type in the values it allows you to enter two columns like: 0 No 1 Yes then is asks you whether you want to show both columns, or hide the first; opt for the latter, so the user sees Yes/No, but the numeric values are returned to the query. That said, I would have taken another approach: for a yes/no set of possible answers, I would use check boxes; those return True/False (or -1, 0 respectively) to the query, and the user only sees check/no check, and can change the status in one move (vs two for a combo), plus an array of chekcs/no checks is more readable than an array of Yes and No 's. HTH, Nikos Richard Horne wrote: Hi guys, I have a form with 5 combo boxes, the results of which are passed to a query to display a list of orders. One of the combo boxes is called OrderComplete with a value or either Yes or No obviously determining whether the query shows incomplete orders or not. However, to get the query to work, the OrderComplete Combo box should have the options 0 and 1 instead of yes and no, but this is not ideal as the database users won't know that 0=No and 1=Yes, is there a way around this? Thanks in advance. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Combo Boxes, Queries and Forms | Joy | Using Forms | 1 | March 12th, 2005 09:59 AM |
Filtering with Cascading Combo Boxes | Marguerite Hall | Using Forms | 2 | October 27th, 2004 02:57 PM |
Combo Boxes again | New Users | 3 | September 20th, 2004 04:51 PM | |
VB Code help for combo boxes | Cherish | Running & Setting Up Queries | 1 | September 19th, 2004 08:38 AM |
Cascading Combo Boxes -- Part 1 | rich | Using Forms | 0 | June 8th, 2004 10:03 PM |