dbTalk Databases Forums  

VERY Basic Question

comp.database.ms-access comp.database.ms-access


Discuss VERY Basic Question in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ben
 
Posts: n/a

Default VERY Basic Question - 10-29-2003 , 12:28 AM






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

Reply With Quote
  #2  
Old   
Bradley
 
Posts: n/a

Default Re: VERY Basic Question - 10-29-2003 , 04:19 PM






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

--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response

"Ben" <benross7 (AT) hotmail (DOT) com> wrote

Quote:
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



Reply With Quote
  #3  
Old   
Al Lewis
 
Posts: n/a

Default Re: VERY Basic Question - 11-02-2003 , 12:48 PM



On Wed, 29 Oct 2003 22:19:40 GMT, "Bradley"
<bradley (AT) REMOVETHIScomcen (DOT) com.au>

Quote:
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?




Reply With Quote
  #4  
Old   
Bradley
 
Posts: n/a

Default Re: VERY Basic Question - 11-02-2003 , 03:47 PM



"Al Lewis" <big (AT) boss (DOT) man> wrote

Quote:
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?
Who knows I guess because it's stored that way?
--
Bradley
Software Developer www.hrsystems.com.au
A Christian Response www.pastornet.net.au/response




Reply With Quote
  #5  
Old   
Ray
 
Posts: n/a

Default Re: VERY Basic Question - 11-03-2003 , 07:30 AM



Al Lewis <big (AT) boss (DOT) man> wrote

Quote:
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


Reply With Quote
  #6  
Old   
John
 
Posts: n/a

Default Re: VERY Basic Question - 11-05-2003 , 09:36 PM



You can use True and False can't you?

John

jobrien at acscience dot com


raycait (AT) excite (DOT) com (Ray) wrote in message news:<20ba9f4a.0311030530.55ecc15f (AT) posting (DOT) google.com>...
Quote:
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

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.