D
Duane
I am trying to lookup the value of a field in another table. The table is a
linked table in a database which I didn't design, so I am working with what
I have.
Reference Table:
Table: Prisoners
Target Field: Position - Text Field
Key Field for Reference: Number - Text Field. I know, it say "Number", but
it is a text field.
Calling Form
frmDataEntry
Text box - Assignment
Text box - Number Same value as the Key Field in table Prisoners.
In the assingment text box I have the following as its control source
=DLookup("Position", "Prisoners", "Number =" & '" &
Forms!frmDataEntry!Number & "'")
I have changed things around a bit, but everything I have tried returns and
#Error
Any help woud be appreciated.
Thanks in advance...
linked table in a database which I didn't design, so I am working with what
I have.
Reference Table:
Table: Prisoners
Target Field: Position - Text Field
Key Field for Reference: Number - Text Field. I know, it say "Number", but
it is a text field.
Calling Form
frmDataEntry
Text box - Assignment
Text box - Number Same value as the Key Field in table Prisoners.
In the assingment text box I have the following as its control source
=DLookup("Position", "Prisoners", "Number =" & '" &
Forms!frmDataEntry!Number & "'")
I have changed things around a bit, but everything I have tried returns and
#Error
Any help woud be appreciated.
Thanks in advance...