Question : LinkMasterFields and LinkChildFields?

Hi:
What shoul I write here please?
Me.sufEmpAttend.SourceObject = "sufEmpAttendChange"
Me.sufEmpAttend.LinkMasterFields = ???
Me.sufEmpAttend.LinkChildFields = ???

I have a field "AttendID"
It is in the two forms, the main and sub form
My main form name is "frmAttendance"
My sub form is "sufEmpAttendChange"

I do it this way but wrong, I get error message in the third line
Me.sufEmpAttend.SourceObject = "sufEmpAttendChange"
Me.sufEmpAttend.LinkMasterFields = Me.AttendID
Me.sufEmpAttend.LinkChildFields  = [Forms]![frmAttendance]![sufEmpAttendChange].Form![AttendID]
 
err:" Microsoft office access unable to find the field "sufEmpAttendChange" you point to in the Expression
and hi mark the third line "the LinkChildFields""
please

Answer : LinkMasterFields and LinkChildFields?

You must use "AttendID" to set the property value (with " ")
Random Solutions  
 
programming4us programming4us