Solved

InputBox displays when form opens

Posted on 2014-10-15
3
185 Views
Last Modified: 2014-10-15
I have created a form with numerous text boxes whose Control Value are set to "InputBox("Enter Value", "Plate Response").

When I open the form the user is prompted for each one of the InputBoxes.  How do I turn this feature off and allow the user navigate to the first input box, and then move to the next upon update?

Thanks

Glen
0
Comment
Question by:GPSPOW
  • 2
3 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40382660
<<How do I turn this feature off and allow the user navigate to the first input box, and then move to the next upon update?>>

 If your using a form with controls, there's no need for an input box.

 The inputbox() function is intended for entry outside of a form.

 Simply set the controlsource of the control to the field in the forms recordsource, or leave it blank (in which case, it is "unbound")

Jim.
0
 

Author Comment

by:GPSPOW
ID: 40382708
Can you validate the input if it is suppose to be numeric?

Thanks

glen
0
 
LVL 57
ID: 40382891
Certainly.  

 If it's a bound control, then the data type controls the types of things that go in there.  Many of the controls properties, such as input mask and format  control how you can enter things and will appear.

 You can also do additional checks in the controls BeforeUpdate event for things that go beyond that, like checking if a date is within the last 30 days, etc.

In fact you could if you wanted to check each and every character as the user types (not often you'd do this, but you can do it).

Jim.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question