Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jez,
Put the code needed to check the job number in the function Private Sub txtJobNum_Change() ' code to check the value End Sub This goes in the code for the user form. txtJobNum is the name of the text box on the form. You will have to devise code to not allow the form processing to complete until the user corrects the situation. For example, you could throw up a msgBox with OK and Cancel buttons. But a better solution would be to give the user the next available job number rather than having him/her guess. Search the DB for the largest one already there and write that number plus 1 into txtJobNum as the default value. Ed "Jez" wrote in message ... Hi please help... I have a user form in Excel which collates all the information I need, and then updates into a table in an access database. I am trying to understand that when I input a job number in the form that it then runs a query to the database and finds out if that job number exists in the table already, and if so then it alerts me to say allready in database. How can I do this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Forcing User inputs | Excel Discussion (Misc queries) | |||
Locking Cells when user inputs data | Excel Discussion (Misc queries) | |||
User-defined Function With Varible Number of Inputs | Excel Programming | |||
Extend Border As User Inputs New Rows | Excel Discussion (Misc queries) | |||
Text Box : Controlling what the user inputs | Excel Programming |