Just a suggestion, I'm not particularly skilled with vb either so my suggestion may seem ridiculous but I thought I'd try to help anyways. Have you tried replacing the if statements with case statements? Like this?
Instead of
If CompanyName = "FranksCars" Then
Discount = "15.00"
ElseIf CompanyName = "MotorsRus" Then
Discount = "10.00"
Else
Discount = "0.00"
End If
Try this
Select Case CompanyName
Case "FranksCars"
Discount = "15.00"
Case "MotorsRus"
Discount = "10.00"
Case Else
Discount = "0.00"
End select
Just a suggestion... I really hope you get it working, good luck!
Slade :p
Slade
Practically a Master Poster
633 posts since Mar 2004
Reputation Points: 115
Solved Threads: 7