Connecting Tech Pros Worldwide Help | Site Map

Filtering Records

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2006, 03:55 PM
Senna_Rettop
Guest
 
Posts: n/a
Default Filtering Records

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, 04:05 PM
Allen Browne
Guest
 
Posts: n/a
Default 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!!

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,840 network members.