In my Patients table i have a field called PatientID (AUTONUMBER) as my primary key
I hve another problem. Is this possible as i hve been trying for two days now. I hve tried a lot of ways but i cant get it to work right.
I have a table called dependents. ID , PatientID,,Dependents,DOB,Age id being the PK AND PatientID as a number
I have a table called vitals. with ID,PatientID,PatientName( which is a dropdown of Dependents), hpp,sats etc. (This is a subform in datasheet style in another form)
In my table vitals i have the follwing for PatientName . comboxbox.
SELECT Dependents.Dependents, DateDiff("yyyy",[DOB],Now())+Int(Format(Now(),"mmdd")<Format([DOB],"mmdd")) AS Age FROM Dependents;
So it selects fine in a dropdown like John 48, smith 36.
The problem i have is that it selcts all the records irrespective of PatientID.
I hve another problem. Is this possible as i hve been trying for two days now. I hve tried a lot of ways but i cant get it to work right.
I have a table called dependents. ID , PatientID,,Dependents,DOB,Age id being the PK AND PatientID as a number
I have a table called vitals. with ID,PatientID,PatientName( which is a dropdown of Dependents), hpp,sats etc. (This is a subform in datasheet style in another form)
In my table vitals i have the follwing for PatientName . comboxbox.
SELECT Dependents.Dependents, DateDiff("yyyy",[DOB],Now())+Int(Format(Now(),"mmdd")<Format([DOB],"mmdd")) AS Age FROM Dependents;
So it selects fine in a dropdown like John 48, smith 36.
The problem i have is that it selcts all the records irrespective of PatientID.