G
Guest
Tables: tblEmployee; tblFireDept
Form: frmPersAction (Record Source = tblEmployee)
Combo Box: cboDept (query on tblFireDept)
Textboxes: txtFireChief; txtDeptPhone
What I would like to do is populate the textboxes based on the selection in
the combo box. I'm using 'dlookup', however, either nothing happens when a
selection is made (textboxes not populated) or I get a Run-time error 3075
(or some other number).
I've tried putting the following dlookup statement in the control source of
the combo box as well as in the after update to no avail. I figure if I
could get one of them to work, I'm doing good.
=DLookup("[FireChief]", "[tblFireDept]", "[DeptName]= ' "& cboDept&"'")
Is this possible or should I take another route?
Any suggestions would be greatly appreciated.
Form: frmPersAction (Record Source = tblEmployee)
Combo Box: cboDept (query on tblFireDept)
Textboxes: txtFireChief; txtDeptPhone
What I would like to do is populate the textboxes based on the selection in
the combo box. I'm using 'dlookup', however, either nothing happens when a
selection is made (textboxes not populated) or I get a Run-time error 3075
(or some other number).
I've tried putting the following dlookup statement in the control source of
the combo box as well as in the after update to no avail. I figure if I
could get one of them to work, I'm doing good.
=DLookup("[FireChief]", "[tblFireDept]", "[DeptName]= ' "& cboDept&"'")
Is this possible or should I take another route?
Any suggestions would be greatly appreciated.