How to convert Yes/No field to checkbox in ACCESS report?

Hi,
  I have a ACCESS table where there is a field "Overtime" with Yes/No format.
  When I print it in the report, it shows "Yes" or "No" and it takes too much space.
  I like to do either:
  (1) Print only one letter in Cap: "Y" or "N"   or
  (2) Print in the checkbox format: [x] or [ ]
  because of limited space in the report.

Thanks.
LVL 1
sgleeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mbizupCommented:
If the underlying field is indeed a Y/N field in your table's design, you can simply place a checkbox control on your report and set it's control source to that field.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
unknown_routineCommented:
This is not directly possible as Access reports do not let SQL manipulations to the fields.


Here is what you can do:


1: Copy your table to a new table:

SELECT * INTO MyTableCopy
FROM MyTable

Open in new window



Now update this copied table:


Update MyTableCopy
Set overtime='N' 
where overtime='No'


Update MyTableCopy
Set overtime='Y' 
where overtime='YES'

Open in new window




And then build your report based on this new table.
0
sgleeAuthor Commented:
overtime@mbizup
As you said, I simply placed a checkbox control and set the Control Source to the OverTime field and it is printing in checkbox. In the report, I just added the new checkbox control (in blue color) below the original Overtime field in Yes/No.
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

mbizupCommented:
Okay... so is that what you are looking for?  If so, you can remove the original control that is displaying the Yes/No.

If that is NOT what you are looking for, please clarify what needs to change.
0
mbizupCommented:
Btw, you can/should remove the label that is associated with the checkbox, so that only the checkbox shows.  The label in the header is all that is needed with this layout.
0
sgleeAuthor Commented:
Yes I will remove the original control in YES or NO.
I just wanted to show you that the checkbox control worked.

Thanks for your help.
0
sgleeAuthor Commented:
"Btw, you can/should remove the label that is associated with the checkbox" --> Of course.
0
mbizupCommented:
Glad to help.   :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.