By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,477 Members | 1,641 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,477 IT Pros & Developers. It's quick & easy.

Filtering Records

P: n/a
Hi, I'm new to Access so this is probably a stupid question.
I am creating a patient database. I want to create a form in which you
enter a SSN # and that person's name and ID number will appear. The
purpose of the form would be to see if the patient has a previous
record or if the patient is new. I can't use dropdown lists or
anything because I can't have SSNs accessible or patient info showing.
Basically if you don't already have the SSN# of the patient you can't
see their record. So far I've only been able to use temperary filters.
Can someone tell me how make a form like the one I described. Thanks
so much!!

Jul 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
The code for a text box is exactly the same as for a combo.

Just use code such as this in the AfterUpdate event of the text box:
Using a Combo Box to Find Records
at:
http://allenbrowne.com/ser-03.html

If you want to go to a new record when the number is not found, add:
If Not Me.NewRecord Then
RunCommand acCmdRecordsGotoNew
End If

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Senna_Rettop" <eg****@lehigh.eduwrote in message
news:11*********************@s13g2000cwa.googlegro ups.com...
Hi, I'm new to Access so this is probably a stupid question.
I am creating a patient database. I want to create a form in which you
enter a SSN # and that person's name and ID number will appear. The
purpose of the form would be to see if the patient has a previous
record or if the patient is new. I can't use dropdown lists or
anything because I can't have SSNs accessible or patient info showing.
Basically if you don't already have the SSN# of the patient you can't
see their record. So far I've only been able to use temperary filters.
Can someone tell me how make a form like the one I described. Thanks
so much!!

Jul 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.