473,396 Members | 2,018 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to show combo items based on ID

1
I have a table called Vitals with the following fields. Id(PK),PatientID,ConsultDate,Dependents(type combobox)

I then have a table called Dependents with the field ID(PK),PatientID,Dependents,etc
This is also a forn that gets updated whenever there is a new patient or dependent.

In my main form called Patients , the fields are PatientID(PK)which is an autonumber and other fields.
In this fornm i have created a subform for Vitals. The parent link works fine with the PatientID.

The problem I am having is in the combobox of Vitals in the subform. This the rowsource for combobox :SELECT Dependents.Dependents FROM Dependents;

example PatienID 65 is selected in my Main form. Vitals also shows the same PatientID 65. But when I go to select dependents it shows all the patients dependents and not for PatiendID65.
Nov 25 '13 #1
1 6211
trying to recreate its relation in forms. hope this would work...
Nov 25 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jeff Barry | last post by:
Hi, I wonder if any one can help, I'm pretty new to Access and I can't figure out how to change the contents of a combo box based on a selection I make in another. Let me explain I have a...
1
by: Cassie Pennington | last post by:
I have tried to filter one combo box based on a selection in another combo box, by using the following sample code: tblfield=forms!!. However, the combobox only seems to recognise the first...
3
by: MervinJadhav | last post by:
How to disable combo items? Mervin Jadhav Software Developer Solutiioneyes Pvt Ltd (http://www.solutiioneyes.com) 203, Sai Chambers, 16 Mumbai-Pune Rd, Pune - 411 003 INDIA
2
by: Luqman | last post by:
How to show combo box in GridView of ASP.Net 2005 ? Best Regards, Luqman
4
by: JB | last post by:
Hi All, I have a DataGridView in which some columns are combo boxes (i.e. DataGridViewComboBoxColumn). I populate these Combo Boxes directly by using code like this: Dim NewCol As New...
4
WyvsEyeView
by: WyvsEyeView | last post by:
I am doing the very standard thing of filtering the contents of one combo box based on another combo box. I've done it many times, but always on a main form. Now I'm trying to do it on a datasheet...
1
by: shalskedar | last post by:
In my DB i need to change the value for a Combo Box based on some condition.. These values r retrieved from 1 of the tables(Glass) My Query is in my form 1 of the Combo boxes display these...
2
by: rywags11 | last post by:
Hello, Can anyone help me figure out how to show/hide fields based on information entered in other fields in a form in Access 2007? What I'm looking to do is: When a selection from a drop down is...
1
by: Mike Stunn | last post by:
Hello, I have been trying to find a piece of code which would show an image based on referring url. How would I go about displaying say Image1.png if a user came from "http://www.mysite.com" ?...
4
by: Suny | last post by:
Hello everybody ... I have a gridview that display data from SQL table using the Configure data source with where clause to show data based on 2 Dropdown list It works fine and the data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.