C
Charlie
Hi,
I am running the following command:
Private Sub Command22_Click()
TotalColour = Nz([Qty], 0) * Nz([ColourPages], 0) / Nz([ColourSides], 0) /
Nz([ColourNo_Up], 0)
TotalBlack = Nz([Qty], 0) * Nz([BlackPages], 0) / Nz([BlackSides], 0) /
Nz([BlackNo_Up], 0)
SheetsOfPaper = TotalColour + TotalBlack
TotalPaperCost = ColourPaperCost + BlackPaperCost
TotalColourClicks = Qty * ColourPages / ColourNo_Up
TotalBlackClicks = Qty * BlackPages / BlackNo_Up
TotalClicks = TotalColourClicks + TotalBlackClicks
TotalClickCost = ColourClickCost + BlackClickCost
End Sub
However if Qty is 0 for either black or colour it throws me an error. I've
obviously missed something but can't see what.
Any help would be appreciated.
Many thanks in advance
Charlotte
I am running the following command:
Private Sub Command22_Click()
TotalColour = Nz([Qty], 0) * Nz([ColourPages], 0) / Nz([ColourSides], 0) /
Nz([ColourNo_Up], 0)
TotalBlack = Nz([Qty], 0) * Nz([BlackPages], 0) / Nz([BlackSides], 0) /
Nz([BlackNo_Up], 0)
SheetsOfPaper = TotalColour + TotalBlack
TotalPaperCost = ColourPaperCost + BlackPaperCost
TotalColourClicks = Qty * ColourPages / ColourNo_Up
TotalBlackClicks = Qty * BlackPages / BlackNo_Up
TotalClicks = TotalColourClicks + TotalBlackClicks
TotalClickCost = ColourClickCost + BlackClickCost
End Sub
However if Qty is 0 for either black or colour it throws me an error. I've
obviously missed something but can't see what.
Any help would be appreciated.
Many thanks in advance
Charlotte