A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Yes No Combo Boxes Queries Filtering as 0 and 1 Instead....work ar



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2005, 01:13 PM
Richard Horne
external usenet poster
 
Posts: n/a
Default 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  
Old May 19th, 2005, 02:19 PM
Nikos Yannacopoulos
external usenet poster
 
Posts: n/a
Default

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  
Old May 19th, 2005, 02:36 PM
Richard Horne
external usenet poster
 
Posts: n/a
Default


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  
Old May 19th, 2005, 02:43 PM
Nikos Yannacopoulos
external usenet poster
 
Posts: n/a
Default

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

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
Forum Jump

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


All times are GMT +1. The time now is 08:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.