T
Tony Williams
I have a database with two tables tblbusiness and tblindividual. I have a
form, frmregistration, with a control source qryregistration, a query
combining the two tables joined on txtbusinessname. On the form I have a
combobox control, cmbbusinessname, based on the table tblbusiness. Also on
my form is a tabcontrol with a control called txtaddress1. I want this to be
automatically completed from the field txtaddress1in the table tblbusiness.
I have used this Dlookup expression but the field doesn't show the data.
What am I doing wrong?
=DLookUp("[txtaddress1]","[tblBusiness]","[txtbusinessname]=Forms![frmregistration].[cmbbusinessname]")
Thanks
Tony
form, frmregistration, with a control source qryregistration, a query
combining the two tables joined on txtbusinessname. On the form I have a
combobox control, cmbbusinessname, based on the table tblbusiness. Also on
my form is a tabcontrol with a control called txtaddress1. I want this to be
automatically completed from the field txtaddress1in the table tblbusiness.
I have used this Dlookup expression but the field doesn't show the data.
What am I doing wrong?
=DLookUp("[txtaddress1]","[tblBusiness]","[txtbusinessname]=Forms![frmregistration].[cmbbusinessname]")
Thanks
Tony