Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default User Forms & Checking Inputs

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forcing User inputs apache007 Excel Discussion (Misc queries) 1 February 6th 10 05:11 PM
Locking Cells when user inputs data NervousFred Excel Discussion (Misc queries) 0 August 1st 08 09:34 PM
User-defined Function With Varible Number of Inputs Jonas[_3_] Excel Programming 1 August 31st 07 08:05 PM
Extend Border As User Inputs New Rows Paperback Writer Excel Discussion (Misc queries) 1 December 1st 06 02:58 PM
Text Box : Controlling what the user inputs Matthew Balch[_2_] Excel Programming 2 November 15th 06 10:46 AM


All times are GMT +1. The time now is 11:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"