Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DlookUp function in Continous form

Status
Not open for further replies.

wshm

Programmer
Dec 7, 2006
62
US
I have this coding for txtUnit.

Me.txtUnit = DLookup("produnitname", "tbl_DeptProGoalUpdate", "deptbudno = '" & Me![txtDeptBudNo] & "'")

because the field is not bound, every record
is showing as a same value.
a problem...
if I create a field in another table(forms rec source)
and bound this field, then i can't use the dlookup

if i use the dlookup function, the value is repeated..

how can i resolve this problem?

 
oops.
"because the field is not bound, every record
is showing as a same value."
forgot to mention that it's a continous form
 
whew nvm. i created a query to make this work.

UPDATE tbl_DeptBudget INNER JOIN tbl_estUnitCost ON tbl_deptbudget.deptbudno = tbl_estunitcost.deptbudno
SET tbl_DeptBudget.estunitcost = [tbl_estunitcost].[estunitcost];
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top