Hi,
I have a form listing all the patients in the DB and each patient is on one
service or another. I want to be able to double click on the service (a value
from a lookup list) and open the respective form correlating to which service
they are on.
For example:
Patient log Form:
John Smith, Hospital Service
Donna Sharp, Outpatient
I want to be able to click on the Service (ie, Hospital Service) and open
the Hospital Service Form where MR=MR.
Any ideas?
Thanks so much
|
|
0
|
|
|
|
Reply
|
Utf
|
11/14/2009 10:02:02 AM |
|
Dr. Momo wrote:
>I have a form listing all the patients in the DB and each patient is on one
>service or another. I want to be able to double click on the service (a value
>from a lookup list) and open the respective form correlating to which service
>they are on.
>For example:
>Patient log Form:
>
>John Smith, Hospital Service
>Donna Sharp, Outpatient
>
>I want to be able to click on the Service (ie, Hospital Service) and open
>the Hospital Service Form where MR=MR.
I don't understand what you mean by "lookup list", but if
it's a combo box or simple list box, you can use the list's
double click event procedure to open the service form with a
filter to whatever you want:
DoCmd.OpenForm "Hospital Service", _
WhereCondition:= "MR=""" & Me.[the list] & """"
--
Marsh
MVP [MS Access]
|
|
0
|
|
|
|
Reply
|
Marshall
|
11/14/2009 3:46:41 PM
|
|
Thank you for your reply.
Acutally, it's not a combobox or lookuplist. Rather, it's a textbox wherein
you can choose a specific text value, that will correlate to the specific
form I want to open. So, each record(with different MR#s) might have a
different text value and will therefore require a different form to open.
Possible? Or is there another way?
"Marshall Barton" wrote:
> Dr. Momo wrote:
> >I have a form listing all the patients in the DB and each patient is on one
> >service or another. I want to be able to double click on the service (a value
> >from a lookup list) and open the respective form correlating to which service
> >they are on.
> >For example:
> >Patient log Form:
> >
> >John Smith, Hospital Service
> >Donna Sharp, Outpatient
> >
> >I want to be able to click on the Service (ie, Hospital Service) and open
> >the Hospital Service Form where MR=MR.
>
>
> I don't understand what you mean by "lookup list", but if
> it's a combo box or simple list box, you can use the list's
> double click event procedure to open the service form with a
> filter to whatever you want:
>
> DoCmd.OpenForm "Hospital Service", _
> WhereCondition:= "MR=""" & Me.[the list] & """"
>
> --
> Marsh
> MVP [MS Access]
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
11/17/2009 8:28:02 AM
|
|
Dr. Momo wrote:
>Acutally, it's not a combobox or lookuplist. Rather, it's a textbox wherein
>you can choose a specific text value, that will correlate to the specific
>form I want to open. So, each record(with different MR#s) might have a
>different text value and will therefore require a different form to open.
I have no idea what you are trying to say here:
"it's a textbox wherein you can
choose a specific text value"
If the service specific form names are derived from the
names of the services, then that should not be a text box
with user typed values. It should be a combo box with
LimitToList set to yes so users can not enter an invalid
service name and make your program fail because there is no
form to open.
Anyway, it the service name in your "lookup list" is exactly
the same as the name of the related service form, try
something like:
DoCmd.OpenForm Me.[the service text/combobox]
--
Marsh
MVP [MS Access]
|
|
0
|
|
|
|
Reply
|
Marshall
|
11/17/2009 1:22:10 PM
|
|
|
3 Replies
301 Views
(page loaded in 0.122 seconds)
Similiar Articles: Command to run access, open to specific form and specific record ...... parse that into the form name and the lookup ... lines, I need to open the form in the "Call List ... not its actual value!) Change your Open event to Private Sub Form_Open ... Multiple-criteria search on form, to open form - microsoft.public ...Multiple-criteria search on form, to open form - microsoft.public ... on field value of 1st form ... Using form to enter "query criteria" (between values ... search ... Auto Complete (auto fill) in Lookup Fields - microsoft.public ...Even if i type the copy exact value from the lookup table list, an ... Auto Lookup Query in a Form - microsoft.public.access.forms ... ... public ..... the database, re-open, add ... Open form on bottom right hand corner of Access Screen - microsoft ...... Search Post ... I have tried putting distict values for the [right] and [down], but depending on ... Open form on bottom right hand corner of ... Open a form and pass a parameter - microsoft.public.access.forms ...MSGROUPS.NET Search ... Report Parameters forms value list set by VBA? - microsoft.public ... Open a form and pass a parameter ... Auto populate a form from an open form - microsoft.public.access ...Depending on your scenario, have you ... behind the pop up would use some value from the open main form ... Auto Lookup Query in a Form - microsoft.public.access.forms ... Open form with codition - microsoft.public.access.formscoding ...Thank You If I have 2 forms I want to open second form ... Search Post ... know how to check to see if a form is open? I want to get values ... Open a form based on combobox selection - microsoft.public.access ...... box row source is a value list, you ... Visual Basic 4 / 5 / 6 Open Subform in form view always; Show ComboBox based on selection in Different ComboBox; Lookup Field Values ... Parameter value request on report filtered by filter by form ...... run the report I get a dialogue box requesting: "Enter Parameter Value" and "Lookup ... Filter data by using a form and open a report based on this data ... Parameter ... Double click to open form and copy ID field - microsoft.public ...... Search Post Question ... Pass field value selected in Combo Box to SQL ... Click on list Item and open a Detail form - microsoft.public ... How to Use an Access 2007 Lookup List | eHow.comA lookup list in Access 2007 is a column in a table whose values are retrieved from another table or query. ... How to Use the Form Wizard in Access 2007. The Form Wizard ... Create a custom list form - SharePoint Designer - Office.com... the default list forms with a custom list form ... Keyboard shortcut To open the Folder List, press ALT+F1. ... Note Depending on the list, there may be multiple Data ... Create a list of choices by using a list box or combo box - Access ...Depending on your choice, the List Box ... for the Lookup field. Add a list box or combo box to a form: In Design view, open a ... Edit a value list while a form is open in ... MS ACCESS :: Load Record To Form Depending On Value In Combo BoxWhen you select a value on the product search form, i want it to open another form at a ... Open A Form Depending On Selection Off List Box Hi I have a form, with 2 Combo Box ... Lookup methods tutorial + custom list lookup implementation... question of how to present a user with a list of custom-defined values in a lookup form. ... Is there a way to make "go to main table" open up different form ... 7/15/2012 11:35:29 AM
|