MSAccess 97 database contains a Yes/No fieldType (Boolean)
Collecting data on HTML Form CheckBox, processed using ASP (hidden page2). Having trouble identifying enumtype in CreateParameters statement
HTML INPUTFORM1
<INPUT TYPE="checkbox" name="AdLaw" value="Yes">
<!-- if checked returns value yes-->
ASP PAGE2
CommandObject.Parameters.Append _
CommandObject.CreateParameter("AdLaw",11, ,1 )
' 11=bool 1=maxlength(also tried 2-5)
Returns error message indicating wrong 'type'
If I use a string/text type (like 200,adVarChar) I get a message indicating invalid string length if not checked.
Work around has been to create dropdown yes/no and change database field type to text. But it is not what the users want. There are several of these checkboxes to be checked, each has own name.
Eric
If you create something idiot proof,
Nature will create a better idiot.
Collecting data on HTML Form CheckBox, processed using ASP (hidden page2). Having trouble identifying enumtype in CreateParameters statement
HTML INPUTFORM1
<INPUT TYPE="checkbox" name="AdLaw" value="Yes">
<!-- if checked returns value yes-->
ASP PAGE2
CommandObject.Parameters.Append _
CommandObject.CreateParameter("AdLaw",11, ,1 )
' 11=bool 1=maxlength(also tried 2-5)
Returns error message indicating wrong 'type'
If I use a string/text type (like 200,adVarChar) I get a message indicating invalid string length if not checked.
Work around has been to create dropdown yes/no and change database field type to text. But it is not what the users want. There are several of these checkboxes to be checked, each has own name.
Eric
If you create something idiot proof,
Nature will create a better idiot.