>I have insurance forms that we usually fill out by hand. I want to fill them
>out using my database of patient information. However, rather than printing
[quoted text clipped - 14 lines]
>Thanks for any help.
>Mark
I tried to use a report first. The problem was that there are places on the
insurance form that require an "X" like for example:
MALE
X FEMALE
There are other similar situations on the insurance form.
The query that the report is based in has a control GENDER that can be M or F.
I have a label next to the word 'male' on the report with an "X" . The
labelName is Male. I also have a label next to the word 'female' on the
report with an "X" . This label's Name is Female. Both Male and Female
visible properties are set to NO. In the OnOpen property of the report I put
code that reads:
If Gender = "M" then Male.visible = true
If Gender = "F" then Female.visible = true
and when I try to open the report, I get an error message:
"You entered an expression that has no value"
Yet, if I put a textbox on the form with the control source property =
GENDER, the gender appears in the text box in the report, as expected. When I
do the same thing in a form, I did not get the error message. That's why I
switched to a form.
So if I go back to a report, how do I avoid the error message?
Thanks,
Mark
> >I have insurance forms that we usually fill out by hand. I want to fill them
> >out using my database of patient information. However, rather than printing
[quoted text clipped - 21 lines]
> You may be able to use the .jpg of the scanned (paper, not Access) form as a
> background on a Report - no shifting there!
John W. Vinson - 14 Jul 2008 17:33 GMT
>I tried to use a report first. The problem was that there are places on the
>insurance form that require an "X" like for example:
[quoted text clipped - 23 lines]
>
>So if I go back to a report, how do I avoid the error message?
You could base the Report on a Query with a couple of calculated fields:
IsMale: IIF([Gender] = "M", "X", "")
IsFemale: IIF([Gender] = "F", "X", "")
and bind the textboxes next to the MALE and FEMALE labels to these two fields.
No code needed.

Signature
John W. Vinson [MVP]
magicdds - 16 Jul 2008 08:07 GMT
That works very well.
Thanks John
> >I tried to use a report first. The problem was that there are places on the
> >insurance form that require an "X" like for example:
[quoted text clipped - 31 lines]
> and bind the textboxes next to the MALE and FEMALE labels to these two fields.
> No code needed.