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  

This should be easy



 
 
Thread Tools Display Modes
  #1  
Old April 18th, 2005, 06:25 PM
Ken
external usenet poster
 
Posts: n/a
Default This should be easy

I am building a form for a person to select conditions for a query. In the
table there is a column built on a Yes/No being 0 or -1. I would like to
have a check box or a combo box on the form to choose Painted, Not painted or
all. I don't know why, but I can't get it to work. I used a combo with a
bound column containing 0,-1, and " ". I also tried an IIf in the condition,
that returned an error telling me my condition was too complicated to
evaluate.
Any Help is greatly appreciated.
  #2  
Old April 18th, 2005, 06:43 PM
C Naughton via AccessMonster.com
external usenet poster
 
Posts: n/a
Default

Perhaps using the "Option Group" from the toolbox may help, instead of a
combo box. The wizard enables you to assign values.

--
Message posted via http://www.accessmonster.com
  #3  
Old April 18th, 2005, 07:04 PM
Ken
external usenet poster
 
Posts: n/a
Default

the problem with an option group is that it needs values as results. I would
need to return a wld card or something to return all the records. This would
work to return painted or unpainted.

"C Naughton via AccessMonster.com" wrote:

Perhaps using the "Option Group" from the toolbox may help, instead of a
combo box. The wizard enables you to assign values.

--
Message posted via http://www.accessmonster.com

  #4  
Old April 18th, 2005, 08:09 PM
Ken
external usenet poster
 
Posts: n/a
Default

I went back to the combo box and it works except the "all". I am trying to
pass "Like "*"" to the criteria, but I get that the formula is to complex to
be evaluated.
If I wasn't bald I would be pulling my hair out.
again any help is greatly appreciated.

"Ken" wrote:

I am building a form for a person to select conditions for a query. In the
table there is a column built on a Yes/No being 0 or -1. I would like to
have a check box or a combo box on the form to choose Painted, Not painted or
all. I don't know why, but I can't get it to work. I used a combo with a
bound column containing 0,-1, and " ". I also tried an IIf in the condition,
that returned an error telling me my condition was too complicated to
evaluate.
Any Help is greatly appreciated.

  #5  
Old April 18th, 2005, 08:39 PM
MGFoster
external usenet poster
 
Posts: n/a
Default

Ken wrote:
I am building a form for a person to select conditions for a query. In the
table there is a column built on a Yes/No being 0 or -1. I would like to
have a check box or a combo box on the form to choose Painted, Not painted or
all. I don't know why, but I can't get it to work. I used a combo with a
bound column containing 0,-1, and " ". I also tried an IIf in the condition,
that returned an error telling me my condition was too complicated to
evaluate.
Any Help is greatly appreciated.


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes/No (True/False) controls (CheckBoxes) can be -1, 0 or NULL. They
cannot be a space character (" "). If you want to check for NULL use
IsNull(ControlName). If you have more than 2 options you should use a
ComboBox instead of a CheckBox.
--
MGFoster:::mgf00 at earthlink decimal-point net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQmQM8YechKqOuFEgEQL9fgCffD8ggFmhy5Xjxaaz5UJgZc Thcd4AoLNY
gdY9i+o4HrVPpd6Y6z5bEYtk
=OuE0
-----END PGP SIGNATURE-----
  #6  
Old April 18th, 2005, 08:51 PM
MGFoster
external usenet poster
 
Posts: n/a
Default

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

To use "ALL" you'd have to change the query's criteria like this:

WHERE Forms!CriteriaForm!ComboBoxName = "ALL"
OR (Forms!CriteriaForm!ComboBoxName "ALL"
AND criteria_column = Forms!CriteriaForm!ComboBoxName)

--
MGFoster:::mgf00 at earthlink decimal-point net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA+AwUBQmQP5IechKqOuFEgEQIy/wCgkeB+ZJrNuTKazZyIVurD8JY8g7cAl38a
wCEbNqxwme6O1lcit4hoU5g=
=/EMo
-----END PGP SIGNATURE-----

Ken wrote:
I went back to the combo box and it works except the "all". I am trying to
pass "Like "*"" to the criteria, but I get that the formula is to complex to
be evaluated.
If I wasn't bald I would be pulling my hair out.
again any help is greatly appreciated.

"Ken" wrote:


I am building a form for a person to select conditions for a query. In the
table there is a column built on a Yes/No being 0 or -1. I would like to
have a check box or a combo box on the form to choose Painted, Not painted or
all. I don't know why, but I can't get it to work. I used a combo with a
bound column containing 0,-1, and " ". I also tried an IIf in the condition,
that returned an error telling me my condition was too complicated to
evaluate.
Any Help is greatly appreciated.

 




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
Fast & Easy Program Dorrell General Discussion 1 April 17th, 2005 02:24 AM
MAKE EASY MOENY Rajkovaca Ante Worksheet Functions 0 January 2nd, 2004 09:51 PM


All times are GMT +1. The time now is 08:09 AM.


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