J
James
I have put the code in the before insert property and I
still get this object required. Do we have any idea as to
what this could be?
I have the following code on a button which opens the form
which is :
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmSubstanceUse"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.RunCommand acCmdRecordsGoToNew
frmAssesment.Visible = False
Then on the before insert on the form (and have tried this
on the actual field) I have the following code:
Me!Ref = Forms!frmAssesment!Ref
Is there anything there that should stop it from working?
Many Thanks
James
still get this object required. Do we have any idea as to
what this could be?
I have the following code on a button which opens the form
which is :
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmSubstanceUse"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.RunCommand acCmdRecordsGoToNew
frmAssesment.Visible = False
Then on the before insert on the form (and have tried this
on the actual field) I have the following code:
Me!Ref = Forms!frmAssesment!Ref
Is there anything there that should stop it from working?
Many Thanks
James