[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 782
  • Last Modified:

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?
0
emacyam
Asked:
emacyam
1 Solution
 
mbizupCommented:
Give this a try instead:


= inputbox("Enter Your Name")

The method in the article does not work for me either.
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
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.
0
 
emacyamAuthor Commented:
Thanks mbizup.  Worked like a charm!

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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now