Hello - This Board is always so helpful so I will get right to the point. I am building a database in MSAccess 2003 for physcians to track cancer patients they see for Follow Up visits. I have a query that has a Count column which gives me the number of Diagnoses the patient has. When I open the Follow Up form, I run the query On Load, and have a text box that I set the Control Source to equal the Count column in the query
Unfortunately, the query runs but the text box gives the me the #Name? error.
I was searching the Board for help and came across a thread on "Showing Query Results on a Form" (posted April 2, 2004). I seem to be folowing "Sydney Geek's" advice. See below-
_________________________________________
OK, let's say you have MyQuery with SomeResult. You want SomeResult to show on the form -- and SomeResult is the only item in the query (a typical, single-item Totals query).
Try this...
In the form, place an unbound Textbox. The ControlSource should be
=[MyQuery]![SomeResult]
_____________________________________________
The only way my query might conflict with the above advice is that my CountProstate column is not the only item in the query (my query also has PatientID, DiagnosisCode) BUT, the text box is only tied to the Count column so I'm not sure why the Count number isn't displaying?
Any help is greatly appreciated! ray:
Code:
=[qryProstateDiagnosis]![CountProstate]
I was searching the Board for help and came across a thread on "Showing Query Results on a Form" (posted April 2, 2004). I seem to be folowing "Sydney Geek's" advice. See below-
_________________________________________
OK, let's say you have MyQuery with SomeResult. You want SomeResult to show on the form -- and SomeResult is the only item in the query (a typical, single-item Totals query).
Try this...
In the form, place an unbound Textbox. The ControlSource should be
=[MyQuery]![SomeResult]
_____________________________________________
The only way my query might conflict with the above advice is that my CountProstate column is not the only item in the query (my query also has PatientID, DiagnosisCode) BUT, the text box is only tied to the Count column so I'm not sure why the Count number isn't displaying?
Any help is greatly appreciated! ray: