Hi

I know how to make just numeric textbox, but the problem is that
I wisch to enter in the text box wit 2 numbers and then search trough
a database to recive just zipcodes.

Lenny

Here i assume that you are familiar with database connectivity

If you wanna extract zipcodes from the database on the basis of textbox value then you must be familiar with database connectivity and for this i would highly recommend ADODB

I wisch to enter in the text box wit 2 numbers

For this set MaxLength property to the value 2

hope this helps you . . .

Set textbox MaxLength when form load or you can set MaxLength in textbox Properties :

Private Sub Form_Load()
Text1.MaxLength = 2
End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.