Results 1 to 2 of 2

Thread: searching for a record in access

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2006
    Posts
    6

    searching for a record in access

    Hello!
    I'm working with Access XP and i have 2 forms with some unbounded textboxes.
    I'm trying to write a textbox.lostfocus event procedure.
    The idea is that when the textbox loses focus, i need to locate in one of the tables a specific record that matches the textbox.value and open the other form with all the fields of the found record.

    How should I do it ?

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: searching for a record in access

    Use the following SQL synthax

    SELECT whatever field you need FROM yourtable WHERE criteriafield = textbox.value


    criteriafield should be the name of the field that is used to populate your textbox
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

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