473,395 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Worlds Dumbest Question!

Hi:

I have got myself into a tangle, and think its due to a misunderstanding of the Yes/No
field definition. Can someone tell me what I test against (in a macro and code) to
determine if a Yes/No Check box is checked. I have tried 1 and 0, and results diffrer but
because its part of a much bigger problem, I cant figure out which is correct.

Happy Holiday

JOhn Baker
Nov 12 '05 #1
3 2746
"John Baker" <Ba******@Verizon.net> wrote in message
news:3i********************************@4ax.com...
Hi:

I have got myself into a tangle, and think its due to a misunderstanding of the Yes/No field definition. Can someone tell me what I test against (in a macro and code) to determine if a Yes/No Check box is checked. I have tried 1 and 0, and results diffrer but because its part of a much bigger problem, I cant figure out which is correct.
Happy Holiday

JOhn Baker


In VB, 0 is False, any other value is True. For a Yes/No field, Access uses
0 for No and -1 for Yes.

HTH
Randy
Nov 12 '05 #2
"John Baker" <Ba******@Verizon.net> wrote in message
news:3i********************************@4ax.com...
Hi:

I have got myself into a tangle, and think its due to a misunderstanding of the Yes/No field definition. Can someone tell me what I test against (in a macro and code) to determine if a Yes/No Check box is checked. I have tried 1 and 0, and results diffrer but because its part of a much bigger problem, I cant figure out which is correct.


In Jet tables 0 = False and -1 = True. In some other dbs True = positive 1. I
always test for =0 and <>0 which works in either situation.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #3
Thanks..that was a great help in untangling myself !

Best of wishes

John Baker
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
3
by: Ares Lagae | last post by:
Suppose one is writing a library behavior the classes A1, A2 and A3, which share some common behavior. Some applications will only use one of the classes, while other applications will use all of...
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
0
by: andrew | last post by:
If anybody has Star Wars revenge of the sith or War of the Worlds please let me kno Thank you ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----...
7
by: polarz | last post by:
I wrote a front end to a command line mp4 music tagger that reads my playlist files and gets info such as artist, title, album, etc, etc. I use the info to catalog, tag, sort, etc, my files. I've...
53
by: Jeff | last post by:
In the function below, can size ever be 0 (zero)? char *clc_strdup(const char * CLC_RESTRICT s) { size_t size; char *p; clc_assert_not_null(clc_strdup, s); size = strlen(s) + 1;
56
by: spibou | last post by:
In the statement "a *= expression" is expression assumed to be parenthesized ? For example if I write "a *= b+c" is this the same as "a = a * (b+c)" or "a = a * b+c" ?
2
by: Allan Ebdrup | last post by:
Hi, I'm trying to render a Matrix question in my ASP.Net 2.0 page, A matrix question is a question where you have several options that can all be rated according to several possible ratings (from...
8
by: zionist.news | last post by:
The world have been after Bill Gates for no reason. The richest group was and remains the Zionist jew Rothschilds family who own HALF the worlds total wealth through numerous frontmen zionists. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.