Having selected my client and populated their unique Identifier (IOID) I ask if they have a partner via a message box?
Preceeding code has established the partners unique ID (called IOIDJ)
I'm trying to populate an unbound field on the parent form with the full_name of the client's partner where the IOIDJ is equal.
I currently have a message box as follows:
Im struggling to look up and return the full_name from a query (qryCCASearch) where IOIDJLkp is equal
error 3078
says cannot find "[qryCCASearch] = Me.Parent.IOIDJ"
What I am trying to do is look up the name of a client from a query and then populate Me.Parent.PartnName with this look up.
I think I'm close !!!
As always thanks for your time and patience.
Preceeding code has established the partners unique ID (called IOIDJ)
I'm trying to populate an unbound field on the parent form with the full_name of the client's partner where the IOIDJ is equal.
I currently have a message box as follows:
Code:
Dim LResponse As Integer
LResponse = MsgBox("Is this a Joint Report?", vbYesNo, "Continue")
If LResponse = vbYes Then
Me.Parent.JointOrNot = "Joint Report"
Dim IOIDJLkp As Variant
'IOIDJLkp = DLookup("[full_name]", "[qryCCASearch] = Me.Parent.IOIDJ")
'Me.Parent.PartnName = IOIDJLkp
Exit Sub
Else
Me.Parent.IOLINK = Null
Me.Parent.SJ = Null
Me.Parent.PartnName = Null
End If
Im struggling to look up and return the full_name from a query (qryCCASearch) where IOIDJLkp is equal
error 3078
says cannot find "[qryCCASearch] = Me.Parent.IOIDJ"
What I am trying to do is look up the name of a client from a query and then populate Me.Parent.PartnName with this look up.
I think I'm close !!!
As always thanks for your time and patience.