I want to sum some values in my report, but it gives me an error:
You entered an expression that has no value.
Option Compare Database
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim runsum As Integer
runsum = Me.quantity1 + Me.quantity2 + Me.quantity3 + Me.quantity4 + Me.quantity5
Me.totalamount = runsum
End Sub
What's wrong with my code???
Thanks a lot
You entered an expression that has no value.
Option Compare Database
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim runsum As Integer
runsum = Me.quantity1 + Me.quantity2 + Me.quantity3 + Me.quantity4 + Me.quantity5
Me.totalamount = runsum
End Sub
What's wrong with my code???
Thanks a lot