S
Sharon
I have an unbound text field named txttotal in the footer of my form, which
totals the Line totals of a subform. Below is the expression that I used for
After Update.
Private Sub Form_AfterUpdate()
If Nz(Me.PurchaseOrderID, "") = "" Then
Me.txtTotal = 0
Else
Me.txtTotal = DSum("UnitPrice * Quantity",
"tblPurchaseOrderDetails", "PurchaseOrderID=" & Me.PurchaseOrderID)
End If
End Sub
When I go into the form it is showing my totals in this field correctly.
But, when I go to add a new record, it comes up with this error:
CompileError:
Method or data member not found
Can someone give me some direction as to where I would begin to look to
solve this problem.
Thanks.
totals the Line totals of a subform. Below is the expression that I used for
After Update.
Private Sub Form_AfterUpdate()
If Nz(Me.PurchaseOrderID, "") = "" Then
Me.txtTotal = 0
Else
Me.txtTotal = DSum("UnitPrice * Quantity",
"tblPurchaseOrderDetails", "PurchaseOrderID=" & Me.PurchaseOrderID)
End If
End Sub
When I go into the form it is showing my totals in this field correctly.
But, when I go to add a new record, it comes up with this error:
CompileError:
Method or data member not found
Can someone give me some direction as to where I would begin to look to
solve this problem.
Thanks.