I am trying to do the following:
Dim infostr, jobprice
Dim QCOST
QCOST = “1”
[QJobNo] = inputbox(“New Job Number”, “Quote Form”) ‘ this line is fine
jobprice = inputbox(“Enter the Job Cost – $” & [QPrice], , QCOST, “Quote Form”)
If I do this:
jobprice = inputbox(“Enter the Job Cost – $” & [QPrice], “Quote Form”)
Not a problem, but if I do this:
jobprice = inputbox(“Enter the Job Cost – $” & [QPrice], , QCOST, “Quote Form”)
then I get: Err 13 Type mismatch error.
I cannot see why this will not work.
I had been trying :
QCOST = str([QPrice])
where [QPrice] was a Number variable and was getting the error, so I changed it to one of the help examples and still can’t get it to work!
Any ideas?