sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Senna_Rettop's Avatar

Filtering Records


Question posted by: Senna_Rettop (Guest) on July 17th, 2006 04:55 PM
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!!

1 Answer Posted
Allen Browne's Avatar
Guest - n/a Posts
#2: Re: Filtering Records

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" <ego204@lehigh.eduwrote in message
news:1153151884.662855.94170@s13g2000cwa.googlegro ups.com...
Quote:
Originally Posted by
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!!



 
Not the answer you were looking for? Post your question . . .
197,028 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,028 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors