@Micron said:
And that certainly includes ChatGPT!!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
@Micron said:
And that certainly includes ChatGPT!!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
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.
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:
These are the results I get for the first and second MsgBoxes: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
In cases 1, 4 and 5 the form filtering occurs properly; no filtering occurs in cases 2 & 3.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"
@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.
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-(
Well, OK. Glad you found it.