Link to home
Start Free TrialLog in
Avatar of emacyam
emacyam

asked on

Error #Name? when prompting a user for information when opening (running) a report

I have a report that needs to prompt the user for information and place that "information" in a textbox to be part of the title in a report.  

I created an unbound textbox and placed =[Enter Your Name] on its control source hoping that it would prompt the user to [Enter a Name] and then that name will be populated within the title of the report but I am getting a #Name on the textbox and no prompt?

This article describes exactly what I need and I was following it but was getting a #Name? error.

http://www.techrepublic.com/blog/msoffice/let-access-add-your-name-to-a-report/809

Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As a side comment, personally I think it's a poor way of gathering input as there is no validation. The user can easly cancel the dialog leaving it blank.

You should be using a form to gather the data, then call the report from that form and have the report refer back to the form for the information.

In this way, you can validate the inputs before you call the report (for example, ensuring that the preparer name is not left blank).

FWIW,
Jim.
Avatar of emacyam
emacyam

ASKER

Thanks mbizup.  Worked like a charm!

Thanks too JDettman for the side comment.   Will take it into consideration for my other reports.