Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741

    @Micron said:
    I don't know what you read on this subject but I've read lots of stuff where people don't know what they're talking about
    And that certainly includes ChatGPT!!

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Micron, unbound controls do not ignore DefaultValue setting. Try it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #18
    gr8dane is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2024
    Posts
    16
    Quote Originally Posted by Micron View Post
    Even with default values, when the form is opened are these controls not grey (not selected, and not white)? If they are, their values are Null, not whatever your default property value is.
    No, they are never gray. They are always either white or selected.

  4. #19
    gr8dane is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2024
    Posts
    16
    Quote Originally Posted by davegri View Post
    Your symptoms are exactly as described If cboCat is > 0 for Case 2 or Case 3
    OK, I've added lngCatID to the first MsgBox. I also tried editing my original post to add two additional cases, where I'm selecting cboCat as well as either chkA or chkB, but I couldn't, so here they are:
    Code:
      ElseIf (lngCatID > 0) And (blnA = True) And (blnB = False)  Then  'Case 4
         strFilter = "CatID = " & lngCatID & " AND A = " & blnA
      ElseIf (lngCatID > 0) And (blnA = False) And (blnB = True)  Then  'Case 5
         strFilter = "CatID = " & lngCatID & " AND B = " & blnB
    These are the results I get for the first and second MsgBoxes:
    Code:
    Case 1: "1 False False"  "CatID = 1"
    Case 2: "0 True False"   blank
    Case 3: "0 False True"   blank
    Case 4: "1 True False"   "CatID = 1 AND A = True"
    Case 5: "1 False True"   "CatID = 1 AND B = True"
    In cases 1, 4 and 5 the form filtering occurs properly; no filtering occurs in cases 2 & 3.

  5. #20
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    @June7; I did. The checkbook was null when I opened the form.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #21
    gr8dane is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Apr 2024
    Posts
    16
    Oooops!!! I just discovered a typo (> instead of =) in my code for cases 2 and 3. That's what happens when you copy/paste: errors get repeated. I had double- and triple-checked, but still missed it. Thanks for trying to help, everybody, and sorry for wasting your time. 8-(

  7. #22
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Well, OK. Glad you found it.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. numeric data type and Boolean values
    By rdougherty in forum Access
    Replies: 5
    Last Post: 04-06-2018, 02:23 PM
  2. Dealing with Duplicates and Boolean Values
    By EcologyHelp in forum Access
    Replies: 6
    Last Post: 11-17-2015, 12:49 PM
  3. Combining two boolean values
    By John_B in forum Access
    Replies: 6
    Last Post: 02-11-2012, 11:45 AM
  4. Unique Values and Boolean Fields
    By Triad in forum Forms
    Replies: 1
    Last Post: 07-15-2010, 06:28 PM
  5. How to query boolean values from table
    By kevdmiller in forum Queries
    Replies: 2
    Last Post: 11-30-2006, 07:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums