Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

check dataentry

Status
Not open for further replies.

Heita

Instructor
Jun 21, 2001
6
SE
Hi!

One simple question.
I have textfields which are bound to integer datatypes. If the user types in text i want my own msgbox to "override" the messagebox that Access produces since it´s not good for the unsers.

E.g. check myself that the datatype is the correct one. If not, show MsgBox.

Thanx...
 
private sub txtTextBox_BeforeUpdate(cancel as integer)
if not isnumeric(me.txtTextBox) then
msgbox "...."
cancel=true
end if
end sub

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top