S
Scott
I've been trying to apply the excellent advice offered in this forum (eg,
John Vinson and TomU) but am, apparently doing something wrong. A little
assistance would be appreciated.
I have a Main Form with two unbound text boxes:
txtCustID
txtPetID
I have a number of subforms parked in tabbed sections (for simplicity, I'll
just deal with the first two).
The first tab has 'Clientinfo' information. It uses CustomerID as its
primary field. In the OnCurrent Event I have included this code:
Me.Parent!txtCustID = Me.CustomerID
I have not included anything in the Link Child Fields and Link Master Fields
properties of the subform/subreport because it actually seems to negate the
linkage.
The second tab has 'Petinfo' information. It uses PetID as its primary
field and has the CustomerID as a Long Integer. In the OnCurrent Event I
have included this code:
Me.Parent!txtPetID=Me.PetID
I 'have' used the Link Child Fields (CustomerID) and the Link Master Fields
(txtCustID) here.
Without delving into other problems, my immediate objective is to get the
CustomerID and PetID autonumbers--from the Clientinfo and Petinfo forms,
respectively--to actually be seen in the text boxes of the main form (i.e.,
in txtCustID and txtPetID). Toward that end I have tried to save the record
(ref. my 2/6 question with substantive responses by Al, Stefan and Bob), I
have tried using Me.Parent.Requery, Me.Requery, etc. None of this seems to
work quite right.
If I can understand this better, I hope that I can then address some other
issues relating to the other forms (not discussed here). Any and all
assistance would be appreciated.
John Vinson and TomU) but am, apparently doing something wrong. A little
assistance would be appreciated.
I have a Main Form with two unbound text boxes:
txtCustID
txtPetID
I have a number of subforms parked in tabbed sections (for simplicity, I'll
just deal with the first two).
The first tab has 'Clientinfo' information. It uses CustomerID as its
primary field. In the OnCurrent Event I have included this code:
Me.Parent!txtCustID = Me.CustomerID
I have not included anything in the Link Child Fields and Link Master Fields
properties of the subform/subreport because it actually seems to negate the
linkage.
The second tab has 'Petinfo' information. It uses PetID as its primary
field and has the CustomerID as a Long Integer. In the OnCurrent Event I
have included this code:
Me.Parent!txtPetID=Me.PetID
I 'have' used the Link Child Fields (CustomerID) and the Link Master Fields
(txtCustID) here.
Without delving into other problems, my immediate objective is to get the
CustomerID and PetID autonumbers--from the Clientinfo and Petinfo forms,
respectively--to actually be seen in the text boxes of the main form (i.e.,
in txtCustID and txtPetID). Toward that end I have tried to save the record
(ref. my 2/6 question with substantive responses by Al, Stefan and Bob), I
have tried using Me.Parent.Requery, Me.Requery, etc. None of this seems to
work quite right.
If I can understand this better, I hope that I can then address some other
issues relating to the other forms (not discussed here). Any and all
assistance would be appreciated.