Connecting Tech Pros Worldwide Help | Site Map

Filtering Records

  #1  
Old July 17th, 2006, 04:55 PM
Senna_Rettop
Guest
 
Posts: 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!!

  #2  
Old July 17th, 2006, 05:05 PM
Allen Browne
Guest
 
Posts: n/a

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:
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!!

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtering records with question mark at the end Jiwei06xie answers 8 October 28th, 2008 12:34 AM
Combo box and option group for filtering records for table input hackerslacker answers 1 May 23rd, 2006 03:15 PM
Simplest recommendation for filtering records returned in a combo box on a form? MLH answers 1 January 20th, 2006 01:35 AM
Need help filtering records with combo boxes Luther answers 2 November 12th, 2005 03:48 PM
Filtering records in a form based on records in subform or related tables. Jason answers 3 November 12th, 2005 02:35 PM