473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Prompt User Response

I have a Parts form with a number of fields. Basically what I want to do is force the user to input values in a certain order on the form when a new record is created. The idea I had was to make all other fields invisible and set focus on the field that requires input, but I'm not sure what the best way to program a "wait for input and then go to next line of code" functionality would be achieved.

The way I was thinking to do it would be tedious and probably way overkill. Could anyone give me a few pointers or tips?

Thanks!

CB55
Mar 10 '08 #1
2 2105
jeffstl
432 Expert 256MB
For unlocking the controls you want to be entered in a certain order, you can use the event "OnLostFocus".

This way when a user tabs, or clicks off the control they just entered data into, within that event you would code your validation (checking to see if they entered data) then just simply make the next field in your order become unlocked or visible.

In order to code this in an organized fashion you could place all your validations and unlocking\hiding code in a single function that is called for each controls "OnLostFocus" event and pass that function the name of the control, and its number in the order (probably could just use the Tab Order).

The only question I guess is do you leave the previously filled out field(s) locked or hide them again? If you do (hide\lock them) it may be difficult to code in a way to go back and let them correct a previous entry.
Mar 10 '08 #2
I don't need to hide the controls after data has been put in. I didn't think of the OnLostFocus event, thanks a lot for the help! I'll post a followup to report back how it goes.
Mar 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Gord | last post by:
Hello, If you set the flag for an overwrite prompt using the 'Save' common dialog, how do you read the response when the user clicks the Yes or No in the 'overwrite' message box? Everything...
3
by: Tim Marshall | last post by:
I'm starting to work with connection strings and Oracle. The connection string syntax is pretty much the same as MS SQL (based on one of Lyle's posts in response to a question I had about a jmonth...
1
by: Marina | last post by:
Hi, I have the following code to prompt the user for a download: Response.Clear() Response.ContentType = "application/octet-stream" Response.AppendHeader("Content-Disposition",...
0
by: Xavier Osa | last post by:
Hi, I have an ASP.Net web page that you can download a file. As Fergunson's problem, it prompts twice dialog boxes only if I select Open button. If I select Save button, it prompts once. I'm...
1
by: Lee | last post by:
Hi, I have a Web application with Windows authentication. I have set a timeout of 20 minutes. Once the application is opened from the client with the local system login, IE prompts for user...
1
by: CBKowitz | last post by:
I have an intermittent problem, when viewing a crystal report. This problem only happens to some users and some report formats. When they try to view the report in Microsoft Word format the...
0
by: Judy | last post by:
I'm searching for some data. After getting the data from sql, i'm using stringbuilder and then i'm passing this as a binary stream. I am trying to display an Excel file of this data in a browser,...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
9
by: edwardscm | last post by:
Hi, i am new to PL/SQL scripting, and need a script to have our operators who run our end of day processes to run their own Oracle PL/SQL and then based on the results of the SQL be prompted to...
0
by: =?Utf-8?B?TW9uaXF1ZQ==?= | last post by:
I just reinstalled IIS as I worked with wamp before and yet I didn't find out how to have a php and a asp server working the same time on a computer. (I had to uninstall the IIS to get wamp at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.