D
dlazenby
Posted question about "synchronizing forms" 2 weeks ago, but I think I was
asking the wrong question. Now focusing on OpenArgs but not getting it.
In simplified version:
One table (PatientTbl). PatientTbl has many demographic fields including
patient's name, DOB, SS#, etc. The primary key field is PtIDpk.
2 forms- (PtMainFrm, PtDemFrm), both with PatientTbl being the control
source. PtDemFrm would be what the user would see first, enter the
demographics (if it is a new patient) and then "jump" (button or hyperlink)
to the PtMainFrm. PtMainFrm would only have 2 or 3 fields common to the
PtDemFrm, like name, DOB. As the name implies the main form would be the main
focus with many subforms connected.
My problem- when going from PtDemFrm to PtMainFrm those fields (name, DOB)
are not updated. BTW, I would like for both forms to be open at the same time
if that is possible.
I think I should be using the OpenArgs technique but am getting nowhere.
Could someone give me some specifics, please?
I think it should be a possible with a button on the PtDemFrm. The user
clicks the button and the data for those fields is passed to the PtMainFrm,
even before jumping to the PtMainFrm. I am thinking the VBA code would:
first, save the record;
then, pass that data to the PtMainFrm;
then, (while still with the focus on the PtDemFrm), update/refresh the
PtMainFrm so that the user now sees that the new/different patient is on the
PtMainFrm.
Please advise.
asking the wrong question. Now focusing on OpenArgs but not getting it.
In simplified version:
One table (PatientTbl). PatientTbl has many demographic fields including
patient's name, DOB, SS#, etc. The primary key field is PtIDpk.
2 forms- (PtMainFrm, PtDemFrm), both with PatientTbl being the control
source. PtDemFrm would be what the user would see first, enter the
demographics (if it is a new patient) and then "jump" (button or hyperlink)
to the PtMainFrm. PtMainFrm would only have 2 or 3 fields common to the
PtDemFrm, like name, DOB. As the name implies the main form would be the main
focus with many subforms connected.
My problem- when going from PtDemFrm to PtMainFrm those fields (name, DOB)
are not updated. BTW, I would like for both forms to be open at the same time
if that is possible.
I think I should be using the OpenArgs technique but am getting nowhere.
Could someone give me some specifics, please?
I think it should be a possible with a button on the PtDemFrm. The user
clicks the button and the data for those fields is passed to the PtMainFrm,
even before jumping to the PtMainFrm. I am thinking the VBA code would:
first, save the record;
then, pass that data to the PtMainFrm;
then, (while still with the focus on the PtDemFrm), update/refresh the
PtMainFrm so that the user now sees that the new/different patient is on the
PtMainFrm.
Please advise.