Check Box in Query

fenhow

Registered User.
Local time
Today, 04:10
Joined
Jul 21, 2004
Messages
599
Hi, I have a query that has several checkbox fields. When I open the query it shows the checkbox not the value (see attached 1), when I export the data it comes into excel as TRUE and FALSE. Is there a way I can in the query show the value ie True or False and secondly add some code in the query that takes a True value and makes it say something else like "BOB" (see attached 2)
Many thanks,
Fen
 

Attachments

  • 1.JPG
    1.JPG
    69 KB · Views: 105
  • 2.JPG
    2.JPG
    75.1 KB · Views: 104
Try using CBool function to change it to word TRUE or FALSE. Use an IIF statement to change the value to anything for True. Something like.
Code:
NewFieldName: CBool(yourOldFieldName)
AnotherNewField: IIF(NewFieldName = True, "BOB", "ROB")
 
Perfect! Worked excellent.
Thank you.
 

Users who are viewing this thread

Back
Top Bottom