S
Someone
Hello
I have a parent form which has a three-page tab control. The form's
recordsource is connected to a table, and the information is on the first
tab. On the third tab is a subform in datasheet view. There is a
one-to-many relationship between the parent and subform (using an ID value
in each). The Link Master Fields and Link Child Fields are correctly set.
When changing the information in one of the fields on the first tab, I have
code that should update the subform with the change that occurred. However,
this isn't occurring.
Strangely, I had sorted this out in a post on 26/11/05 at 18:14 with Tina,
but it's now all gone wrong. I had tried out the following audit trail at
http://support.microsoft.com/default.aspx?scid=kb;en-us;197592 and decided
to get rid of it - that's when the code I had went wrong.
This is the code I'm using:
With Me.frm_A_Subform.Form.RecordsetClone
.AddNew
!Changes = ("Status Changed to " & Me.Status)
.Update
End With
The ID in the subform table isn't the same as the ID in the parent table.
What am I doing wrong please?
Thanks
M
I have a parent form which has a three-page tab control. The form's
recordsource is connected to a table, and the information is on the first
tab. On the third tab is a subform in datasheet view. There is a
one-to-many relationship between the parent and subform (using an ID value
in each). The Link Master Fields and Link Child Fields are correctly set.
When changing the information in one of the fields on the first tab, I have
code that should update the subform with the change that occurred. However,
this isn't occurring.
Strangely, I had sorted this out in a post on 26/11/05 at 18:14 with Tina,
but it's now all gone wrong. I had tried out the following audit trail at
http://support.microsoft.com/default.aspx?scid=kb;en-us;197592 and decided
to get rid of it - that's when the code I had went wrong.
This is the code I'm using:
With Me.frm_A_Subform.Form.RecordsetClone
.AddNew
!Changes = ("Status Changed to " & Me.Status)
.Update
End With
The ID in the subform table isn't the same as the ID in the parent table.
What am I doing wrong please?
Thanks
M