S
smcgrath via AccessMonster.com
I have a datsheet main form for mortgage folders with a field called File
Location which defaults to "Basement Vault" at the table level. I have a
datasheet subform called fileoutsubfrm which contains fields SentDate, SentBy,
Sent To Whom (Cmbobox) and ReturnedDate. The master/child link is the
ACCTNBR field. I am attempting to have the file location field update to the
value of the Sent to Whom from the subform if the Sent to Whom is not null
and the ReturnedDate is Null.
This is my attempt at coding the On Current event of the main form - I am
getting an invalid reference to form error using this:
If IsNull(Me!ConsumerFolderOutSubfrm.Form![Sent_To_Whom])=False And IsNull
(Me!ConsumerFolderOutSubfrm.Form![ReturnedDate] = True Then
Me.FileLocation = Me!ConsumerFolderOutSubfrm.Form![Sent_To_Whom]
Else
Me.FileLocation = Me.FileLocation
End If
I verified that the name of the subform control is ConsumerFolderOutsubfrm -
What is the proper syntax to reference the fields?
Also, should I put the same code in the after update event of the Sent To
Whom field of the subform?
Location which defaults to "Basement Vault" at the table level. I have a
datasheet subform called fileoutsubfrm which contains fields SentDate, SentBy,
Sent To Whom (Cmbobox) and ReturnedDate. The master/child link is the
ACCTNBR field. I am attempting to have the file location field update to the
value of the Sent to Whom from the subform if the Sent to Whom is not null
and the ReturnedDate is Null.
This is my attempt at coding the On Current event of the main form - I am
getting an invalid reference to form error using this:
If IsNull(Me!ConsumerFolderOutSubfrm.Form![Sent_To_Whom])=False And IsNull
(Me!ConsumerFolderOutSubfrm.Form![ReturnedDate] = True Then
Me.FileLocation = Me!ConsumerFolderOutSubfrm.Form![Sent_To_Whom]
Else
Me.FileLocation = Me.FileLocation
End If
I verified that the name of the subform control is ConsumerFolderOutsubfrm -
What is the proper syntax to reference the fields?
Also, should I put the same code in the after update event of the Sent To
Whom field of the subform?