Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mod usage?

Status
Not open for further replies.

frosty7700

Programmer
Aug 10, 2001
95
US
The following line of code:

if (CDbl(rsOther("Price")) Mod .1) = 0 then

is creating the following error:

Microsoft VBScript runtime (0x800A000B)
Division by zero
/pricing.asp, line 702

I don't get it. Even if Price were zero, zero mod .1 = 0, so what's the problem???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top