I am completely new to access programming let alone VB. But I got pretty far with some help from the main programmer.. However I'm trying to introduce a new feature to the database which is basically this:
1) Make selection of "Symptom" from the "Patient" table via Combo box on the form.
2) Click a button on the form to open the report "Patient PD Report" showing details of all recorded patients with that "Symptom"
AND THE CODE I USED IS:
Yet for some reason after making a selection and clicking the button to execute the code, I keep getting a blank report. Can I add any details to make my predicament clearer?? Please help me! The deadline for demonstration is not far away :P!
1) Make selection of "Symptom" from the "Patient" table via Combo box on the form.
2) Click a button on the form to open the report "Patient PD Report" showing details of all recorded patients with that "Symptom"
AND THE CODE I USED IS:
Code:
DoCmd.OpenReport "Patient PD Report", acViewPreview, , "[Symptom] = '" & Me.PD & "'"
Yet for some reason after making a selection and clicking the button to execute the code, I keep getting a blank report. Can I add any details to make my predicament clearer?? Please help me! The deadline for demonstration is not far away :P!
Comment