![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello all. I'm not very familiar with Access; my DB experience is primarily in FileMaker Pro. I'm doing a learning by doing experiment before I jump head into Access. My question is this: I have some records that I do not want to be output to a report. The way I set this up is with a Check Box, if the box is checked, I do not want this record to be output to the report. What would my expression be, IF Table1 (checkbox) >= 1 THEN omit record? My syntax is horribly off track, this I know. Would I even attack this from an IF/THEN point of view. Their is this rather nifty operator of "null" that I've never used before. My other concern is that if I have 3,000 records, setting up a loop if/then script could bog down server/client. Someone please assist in putting my train on the tracks, it is much appreciated in advance. Thanks, Ben |
#3
| |||
| |||
|
|
Why not create a simple query and put a criteria on your field "is True" and then base your report on the query instead of the table? eg. SELECT * FROM myTable WHERE myField Is True;" By the way.... True = -1 False = 0 |
#4
| |||
| |||
|
|
On Wed, 29 Oct 2003 22:19:40 GMT, "Bradley" bradley (AT) REMOVETHIScomcen (DOT) com.au Why not create a simple query and put a criteria on your field "is True" and then base your report on the query instead of the table? eg. SELECT * FROM myTable WHERE myField Is True;" By the way.... True = -1 False = 0 Why doesn't MS use a more conventional definition of True being any non-zero value? |
I guess because it's stored that way?
#5
| |||
| |||
|
|
On Wed, 29 Oct 2003 22:19:40 GMT, "Bradley" bradley (AT) REMOVETHIScomcen (DOT) com.au Why not create a simple query and put a criteria on your field "is True" and then base your report on the query instead of the table? eg. SELECT * FROM myTable WHERE myField Is True;" By the way.... True = -1 False = 0 Why doesn't MS use a more conventional definition of True being any non-zero value? |
#6
| |||
| |||
|
|
Al Lewis <big (AT) boss (DOT) man> wrote On Wed, 29 Oct 2003 22:19:40 GMT, "Bradley" bradley (AT) REMOVETHIScomcen (DOT) com.au Why not create a simple query and put a criteria on your field "is True" and then base your report on the query instead of the table? eg. SELECT * FROM myTable WHERE myField Is True;" By the way.... True = -1 False = 0 Why doesn't MS use a more conventional definition of True being any non-zero value? Hello Al, The reason is due the the fact that a Yes/No data field can have three options. Yes(-1), No(0) and Null. Hence, you need to be specific as to the criteria used to source your data. Regards, Ray |
![]() |
| Thread Tools | |
| Display Modes | |
| |