dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Text box validate on Access Please help

  1. #1
    Join Date
    Nov 2005
    Posts
    1

    Smile Text box validate on Access Please help

    I need to know how to do the following:
    If someone is entering information in a text box or a combo box, and it is not the correct info, I can get an error message to display, but I am not quite sure how to keep them in that field without it automatically skipping to they next field. I want to keep them in that field until they type the correct information.

    I just want that text box to be the active one until they put in the correct info. Then I want the next box to become active.

    Please help!
    ThankS

  2. #2
    Join Date
    Aug 2005
    Posts
    85
    After the user pushes the 'OK' button on the msgbox have something like;

    Text1.SetFocus

    This will move the Carat back to Text1.

  3. #3
    Join Date
    Nov 2005
    Posts
    32

    Thumbs up


    hi,
    this might help you

    Private sub text1_lostfocus()
    if text1.text <> criteria then
    test1.text=""
    text1.setfocus

    endif
    end sub

Similar Threads

  1. TEXT BOX STUFF
    By NEV in forum Web
    Replies: 1
    Last Post: 09-06-2001, 10:23 AM
  2. HELP!! uncovering hidden dialog box
    By TC in forum VB Classic
    Replies: 0
    Last Post: 09-29-2000, 11:53 AM
  3. Replies: 2
    Last Post: 05-18-2000, 04:08 AM
  4. Replies: 0
    Last Post: 04-17-2000, 01:33 PM
  5. Hiding the text in Rich Text Box
    By Javaid Ahmad in forum VB Classic
    Replies: 0
    Last Post: 04-13-2000, 11:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center