T
tao lin
Hi,
I am using Access 2000 under WinXP. I have a form which has a ChildForm.
The main form name is frmMain, the child form name is frmSale, and the
Childform call ChildClientCost. The ChildForm is shown as DataSheet. In the
child form, I have a text box which calculate the GST. The control source is
like this:
=IIf(([CostCodeID].[Column](5)<>-1) And
([Forms]![frmMain]![IsExport]<>-1),[SalePrice]*[Quantity]*0.125*[SaleExRate]
,0)
I know it's quite complex expression, but that's what my user want :-(
Now I need to show the total GST in my main form. I can not do this just
call
=Sum([ChildClientCost].[Form]![SaleGST])
Because Sum function just can sum the actual database field value. So how
can I show the correct sum GST in my main form when the Child form's
SalePrice or Quantity is changed?
Cheers,
Tao
I am using Access 2000 under WinXP. I have a form which has a ChildForm.
The main form name is frmMain, the child form name is frmSale, and the
Childform call ChildClientCost. The ChildForm is shown as DataSheet. In the
child form, I have a text box which calculate the GST. The control source is
like this:
=IIf(([CostCodeID].[Column](5)<>-1) And
([Forms]![frmMain]![IsExport]<>-1),[SalePrice]*[Quantity]*0.125*[SaleExRate]
,0)
I know it's quite complex expression, but that's what my user want :-(
Now I need to show the total GST in my main form. I can not do this just
call
=Sum([ChildClientCost].[Form]![SaleGST])
Because Sum function just can sum the actual database field value. So how
can I show the correct sum GST in my main form when the Child form's
SalePrice or Quantity is changed?
Cheers,
Tao