D
Diane Mountford
My apologies if this is a multiple post, I had a key-punching fit
which took me out of my previous attempt!
I have a form which allows the user to select a variety of options for
reporting on a group of people. I would like to create one report
which changes programmatically based on the options chosen ... rather
than muddying my system with separate reports for each possible
combination (which would be a lot of reports).
For instance, I have Birthdate and Birthplace checkboxes on the form.
I would like to set the control source for a text box on the form to
equal one of the following cases:
1. Both checked: ="Born on " & [Birthdate] & " in " & [Birthplace]
2. Birthdate only checked: ="Born on " & [Birthdate]
3. Birthplace only checked: ="Born in " & [Birthplace]
4. Neither checked: null
I tried a bunch of options for this, but was unsuccessful in finding
the right code and the right place to put it. I solved the problem by
having three stacked controls and using the visible property, but this
seems like a rather inelegant solution.
Any ideas out there?
which took me out of my previous attempt!
I have a form which allows the user to select a variety of options for
reporting on a group of people. I would like to create one report
which changes programmatically based on the options chosen ... rather
than muddying my system with separate reports for each possible
combination (which would be a lot of reports).
For instance, I have Birthdate and Birthplace checkboxes on the form.
I would like to set the control source for a text box on the form to
equal one of the following cases:
1. Both checked: ="Born on " & [Birthdate] & " in " & [Birthplace]
2. Birthdate only checked: ="Born on " & [Birthdate]
3. Birthplace only checked: ="Born in " & [Birthplace]
4. Neither checked: null
I tried a bunch of options for this, but was unsuccessful in finding
the right code and the right place to put it. I solved the problem by
having three stacked controls and using the visible property, but this
seems like a rather inelegant solution.
Any ideas out there?