G
Guest
I have a form "UserSoftware" which has two fields: An SoftwareID Field and a
SoftwareName field. The ControlSource for the SotfwareName field is a
DLookup to find the value in another table based on the SoftwareID value.
This is the syntax for the DLookup, and it works great in this form!
=DLookUp("[SoftwareName]","Software","[SoftwareID] = " &
Forms!UserSoftware!SoftwareID & "")
The SubForm Data results look like this:
ID Name
1 First Name
2 Second Name
3 Third Name
I then insert this form into another form as a Sub-Form and the main form is
called Users. The User record in the User form can have many instances of
the SoftwareIDs and SoftwareNames from the subform.
The problem I have is the DLookup from the inserted SubForm breaks and gives
the error: #Name? when displayed from the main form Users.
This is how the UserSoftware subform displays the results in the User Form
where for example the User = User1
ID Name
1 #Name?
3 #Name?
Does anyone know why I am getting the #Name? error? Is there anyone who can
help me with this?
Thanks,
Leslie
SoftwareName field. The ControlSource for the SotfwareName field is a
DLookup to find the value in another table based on the SoftwareID value.
This is the syntax for the DLookup, and it works great in this form!
=DLookUp("[SoftwareName]","Software","[SoftwareID] = " &
Forms!UserSoftware!SoftwareID & "")
The SubForm Data results look like this:
ID Name
1 First Name
2 Second Name
3 Third Name
I then insert this form into another form as a Sub-Form and the main form is
called Users. The User record in the User form can have many instances of
the SoftwareIDs and SoftwareNames from the subform.
The problem I have is the DLookup from the inserted SubForm breaks and gives
the error: #Name? when displayed from the main form Users.
This is how the UserSoftware subform displays the results in the User Form
where for example the User = User1
ID Name
1 #Name?
3 #Name?
Does anyone know why I am getting the #Name? error? Is there anyone who can
help me with this?
Thanks,
Leslie