Hi friends,
Anybody can help me how to solve this overflow message where I want to disable the msgbox overflow.
Private Sub UnitPrice_AfterUpdate()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Me![RunningTotal] = Me![Qty] * Me![UnitPrice]
If IsNull(Me![OnHand]) Then
Me![AvgPrice] = Me![UnitPrice]
Else
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Me![AvgPrice] = IIf(Nz(Me![OnHand]) = 0, Me![UnitPrice], Nz(DSum("[RunningTotal]", "qryRunningTotal")) / Nz(Me![OnHand]))
Me.OrderBy = "[InventoryID],[PaymentDate]"
Me.OrderByOn = True
Me.Requery
End If
End Sub
Anybody can help me how to solve this overflow message where I want to disable the msgbox overflow.
Private Sub UnitPrice_AfterUpdate()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Me![RunningTotal] = Me![Qty] * Me![UnitPrice]
If IsNull(Me![OnHand]) Then
Me![AvgPrice] = Me![UnitPrice]
Else
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Me![AvgPrice] = IIf(Nz(Me![OnHand]) = 0, Me![UnitPrice], Nz(DSum("[RunningTotal]", "qryRunningTotal")) / Nz(Me![OnHand]))
Me.OrderBy = "[InventoryID],[PaymentDate]"
Me.OrderByOn = True
Me.Requery
End If
End Sub