You have two issues here:
As Ekkehard mentioned,
IsNumeric()
returns a boolean. To test if the value is numeric and then store to your variable, use:If IsNumeric(Request("bid")) Then yourBid = CDbl(Request("bid"))
FormatNumber()
returns a string representation of a number. So you're comparing one string against another instead of one number against another. If you need to round your numbers to two decimals, use theRound()
function instead:If Round(yourBid,2) > Round(currentBid,2) Then
Edit: Proof.
MsgBox VarType(4) ' 2 = vbInteger
MsgBox VarType(FormatNumber(4)) ' 8 = vbString