T
TotallyConfused
Last week I posted regarding synchronizing two different forms. I have 2
main forms with subforms. Form 1 is a doc form with pt listed in a subform.
Form 2 is a pt form with docs listed on the subform. I would like to have
the ability to place my cursor on the doc form's subform for a specific pt.
On a double click have the Pt form open to that specific pt. I tried the
following, in the Doc subform. however, it opens the pt form but with no
data. My PK is PT ID consisting of three letters and 4 number (AAA1234)
Sub Form_DblClick(Cancel As Integer)
DoCmd.Openform "PTForm",,,"PtID =" & Me.Docptlistsubform.txtPTID
End Sub
I also tried: DoCmd.Openform "PTFORM",,,"PTID=" & Me.txtPT
Nothing!! Do I need to enter some event code on the PTFORM as well?
I have tried different things. Sometimes I get a blank PTFORM or an error
message saying can't find the field PTID referenced in your expression.
Can someone please help me get this right. Thank you in advance for your
help.
main forms with subforms. Form 1 is a doc form with pt listed in a subform.
Form 2 is a pt form with docs listed on the subform. I would like to have
the ability to place my cursor on the doc form's subform for a specific pt.
On a double click have the Pt form open to that specific pt. I tried the
following, in the Doc subform. however, it opens the pt form but with no
data. My PK is PT ID consisting of three letters and 4 number (AAA1234)
Sub Form_DblClick(Cancel As Integer)
DoCmd.Openform "PTForm",,,"PtID =" & Me.Docptlistsubform.txtPTID
End Sub
I also tried: DoCmd.Openform "PTFORM",,,"PTID=" & Me.txtPT
Nothing!! Do I need to enter some event code on the PTFORM as well?
I have tried different things. Sometimes I get a blank PTFORM or an error
message saying can't find the field PTID referenced in your expression.
Can someone please help me get this right. Thank you in advance for your
help.