S
solar
Hi,
I need to store data in existing form's text box from another form text box
(field value), for which, i used the below codes which are showing "#Name?"...
The codes are..
When i use this code in the existing form's text box's control source,
1.
=DLookUp("[Req_Ded_Amt]","Requisition_Table","[Req_Ded_Amt]=" &
[Forms]![Deduction_Creation]![Total_Amount])
2.
=[Forms]![Deduction_Creation]![Total Amount]
3.
=DLookUp("[Deduction_Tot_Amt]","Deduction_Table",
"[Ded_Req_id]=" & [Forms]![Requisition_Creation]![Requisition_id]
These THREE different cases are giving error.
But instead of this code, i would like to sum the value when i use Dlookup
function. Like, in a table/Form, the fields are Ded_id,Ded_Remarks,Ded_Amt.
When i take Ded_Amt, I need to sum the value based on the id
For which, may I use the code as below.
=DLookUp((Sum("[Deduction_Tot_Amt]")),"Deduction_Table",
"[Ded_Req_id]=" & [Forms]![Requisition_Creation]![Requisition_id]
Pls.suggest me & point out me where i have done mistake.
Thanks in adv...
ngr.
I need to store data in existing form's text box from another form text box
(field value), for which, i used the below codes which are showing "#Name?"...
The codes are..
When i use this code in the existing form's text box's control source,
1.
=DLookUp("[Req_Ded_Amt]","Requisition_Table","[Req_Ded_Amt]=" &
[Forms]![Deduction_Creation]![Total_Amount])
2.
=[Forms]![Deduction_Creation]![Total Amount]
3.
=DLookUp("[Deduction_Tot_Amt]","Deduction_Table",
"[Ded_Req_id]=" & [Forms]![Requisition_Creation]![Requisition_id]
These THREE different cases are giving error.
But instead of this code, i would like to sum the value when i use Dlookup
function. Like, in a table/Form, the fields are Ded_id,Ded_Remarks,Ded_Amt.
When i take Ded_Amt, I need to sum the value based on the id
For which, may I use the code as below.
=DLookUp((Sum("[Deduction_Tot_Amt]")),"Deduction_Table",
"[Ded_Req_id]=" & [Forms]![Requisition_Creation]![Requisition_id]
Pls.suggest me & point out me where i have done mistake.
Thanks in adv...
ngr.