Question
INSANITY - UPDATE form with a checkbox?? ASP/VBScript/MSSQL
Sorry, but I've just "burst" with anger and need some help.
:o)
ASP/VBScript/MSSQL
I have an UPDATE form that has a checkbox. If the checkbox field in the
database is "True" it displays a checked check box, if it is "False" it
displays an unchecked check box.
If a user places a check in the checkbox and submits the UPDATE form, I am
getting the following error:
Wrong number of arguments or invalid property assignment: 'MM_IIf'
Line 40
Line 40 is, of course, the reference to the checkbox:
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param6", 5, 1, -1,
MM_IIF(Request.Form("deletevoucher"), Request.Form("deletevoucher"), null))
' adDouble
Now, I know that I need to change the type here. Can some kind soul please
tell me what it SHOULD be?
It is this kind of problem that makes me want to through Dreamweaver out of
the window and please don't patronise me with "it isn't Dreamweavers fault".
DW creates the incorrect code...who elses fault is it?? Tired, oh so very
tired, of Dreamweaver.
Thank you, in advance, for any advice offered.
Nath.
(it has been a long day)
ASP/VBScript/MSSQL
I have an UPDATE form that has a checkbox. If the checkbox field in the
database is "True" it displays a checked check box, if it is "False" it
displays an unchecked check box.
If a user places a check in the checkbox and submits the UPDATE form, I am
getting the following error:
Wrong number of arguments or invalid property assignment: 'MM_IIf'
Line 40
Line 40 is, of course, the reference to the checkbox:
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param6", 5, 1, -1,
MM_IIF(Request.Form("deletevoucher"), Request.Form("deletevoucher"), null))
' adDouble
Now, I know that I need to change the type here. Can some kind soul please
tell me what it SHOULD be?
It is this kind of problem that makes me want to through Dreamweaver out of
the window and please don't patronise me with "it isn't Dreamweavers fault".
DW creates the incorrect code...who elses fault is it?? Tired, oh so very
tired, of Dreamweaver.
Thank you, in advance, for any advice offered.
Nath.
(it has been a long day)
