YoelBenYossef
Programmer
Hi there,
I'm currently writing a program that uses ASP to request information and put it into an Access DB.
The problem arises when I use the checkboxes. The access fields are boolean yes/no fields. When I use:
rst("JobEmail")=request.form("chkEmail")
it works perfectly if the checkbox is checked, since the value for the checkbox is true. The problem is that if the box is unchecked, it inserts a blank space, and I get an error.
Is there any way to fix this in a single step? I'd rather avoid using if-then-else.
Thanks
Eric
I'm currently writing a program that uses ASP to request information and put it into an Access DB.
The problem arises when I use the checkboxes. The access fields are boolean yes/no fields. When I use:
rst("JobEmail")=request.form("chkEmail")
it works perfectly if the checkbox is checked, since the value for the checkbox is true. The problem is that if the box is unchecked, it inserts a blank space, and I get an error.
Is there any way to fix this in a single step? I'd rather avoid using if-then-else.
Thanks
Eric