|
-
Jan 31st, 2006, 12:01 PM
#1
Thread Starter
New Member
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 ?
-
Jan 31st, 2006, 12:08 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|