Check boxes are fine for data entry, but you may not want to use them on a formal report. For example, suppose you have a Yes/No field in your Employee Records table called Insurance. If the employee signed up for your company's life insurance plan, the box is checked; if the employee declined the insurance, the box is not checked. You want to create a report that lists employee name, ID, hire date, and whether the employee declined or accepted life insurance. Follow these steps:
- Create a query that displays Employee ID, Lastname, Firstname, Hire Date, and Insurance field from the Employee Records table.
- Right-click the Insurance field in the Query Design view and select Properties.
- Click in the Format property box and enter the following code:
- Click the Lookup tab.
- Click in the Display Control property box and select Text Box.
- Close and save the query.
When you create a report based on this query, either the word Accepted or Declined will replace the check box in the Insurance field.
Miss an Access tip?
Check out the Microsoft Access archive, and catch up on our most recent Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.