CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    19

    Looking Up Data From Access

    I am using a Access Data Base in my program. I would like to be able to look up info from the DB
    by typing a phone number in a text box and then have the rest of the info for that number show up in in the other text boxes on the form.

    Thanks in Advance
    Donny S.


  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    Re: Looking Up Data From Access

    You would have to use the LostFocus or Validate event of the text box for the phone number. Then in that event you would have to pull back the information relating to that phone number and populate the screen with those values.

    To get the validate event (which fires before the lost focus event) you have to set the CausesValidation property to True for that text box. FYI - The Validate event is only available in VB6.

    hope this helps,
    John

    John Pirkey
    MCSD
    www.ShallowWaterSystems.com
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured