Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8043701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:59:23+00:00 2026-06-05T04:59:23+00:00

I am building a report in access 2007, and trying to set a checkbox

  • 0

I am building a report in access 2007, and trying to set a checkbox to true based on the value of a string in a textbox.
For example: If txtBoxValue = “Injury” then chkBoxValue = True(Checked) Else chkBoxValue = False(unchecked).

This is the value I have in the source control of chkBoxValue.

=IIf([txtBoxValue]=”Injury”,1,0)

I am new to VBA, and any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:59:24+00:00Added an answer on June 5, 2026 at 4:59 am

    This should work as the control source of chkBoxValue:

    =([txtBoxValue]="Injury")
    

    Be careful about the quotes you use in VBA code. Notice you used ” (ASCII 148) and I used ” (ASCII 34).

    Edit: As @nicholas pointed out, that control source expression will give you Null when [txtBoxValue] is Null. If you prefer False instead, add the Nz() function.

    =(Nz([txtBoxValue],"")="Injury")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time building a UI in Access (using Access 2007), and
I'm currently working on building a PDF based report in Java. I have looked
I'm building a report in Visual Studio 2008 with a lot of multivalue parameters
I'm building a report using Report Builder 3.0. The source system I'm working with
I'm building a report for a database where I need to determine the number
I'm building a report of case results with a parent-child grouping on the row
When building a report in Business Intelligence Studio 2008, I've noticed that the hide/show
I am building a report which gets data from a dataset containing 10 rows.
I am building a report in Reporting Services 2005, where the data is retrieved
I am building a SSRS 2005 report that has potentially multiple pages. I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.