P
PC
Hi,
I want to display a field from an unrelated table on a form.
Data is displayed on a form when a particular Invoice number is chosen from
a lookup field. Supplier account codes are displayed (The account Code is
what is stored in the Related table [tblInvoice] having originally been
selected from another table [tblSuppliers] with which it has a Many-toOne
Relationship) but I would like to display the account name beside the
account code
I have tried using a Dlookup on a text box
"=DLookUp("[SupName]","tblSuppliers","[txtSupAccountCode]"=Forms!frmInvoiceR
eturned!Supplier)" but this doesn't seem to work.
Any ideas
Thanks
I want to display a field from an unrelated table on a form.
Data is displayed on a form when a particular Invoice number is chosen from
a lookup field. Supplier account codes are displayed (The account Code is
what is stored in the Related table [tblInvoice] having originally been
selected from another table [tblSuppliers] with which it has a Many-toOne
Relationship) but I would like to display the account name beside the
account code
I have tried using a Dlookup on a text box
"=DLookUp("[SupName]","tblSuppliers","[txtSupAccountCode]"=Forms!frmInvoiceR
eturned!Supplier)" but this doesn't seem to work.
Any ideas
Thanks