medical form report

  • Thread starter Thread starter denlander
  • Start date Start date
D

denlander

Guest
the table tbQ4 has a form frmQ4 with yes/no question boxes regarding a patient history
for example
Fever y/n?
chills? y/n
muscle aches y/n?
general weakness y/n?

The report should include only the Yes answers for example

the patient has fever, muscle aches, general
weakness
 
Run through the checkboxes and build a string with the ones that are true....

dim strMedical
dim ctl as control

strMedical = "The patient has "

For each ctl in Me
if ctl.controlType = acCheckBox then
if ctl.Value = true then
strMedical = strMedical & ctl.Name & ", "
end if
end if
next

'The next line is to get rid of the final comma and space...
strMedical = Left(strMedical, Len(strMedical) - 2)

'strMedical now has your completed string..
 

Users who are viewing this thread

Back
Top Bottom