Do you know where your variables are? | |
PerlMonks |
Re: inserting checkboxes into yes/no field in Accessby simon.proctor (Vicar) |
on Apr 21, 2006 at 08:59 UTC ( [id://544820]=note: print w/replies, xml ) | Need Help?? |
A yes/no field in access works by you inserting a 1 or a 0. So don't try to insert text. Check your vars and then insert a '1' as appropriate.
However, recall that if a checkbox is not checked then it won't appear in your CGI query variables. Unless you can switch to radio buttons (so testing for the 'off') you'll need to makre sure you have the correct logic. Ie: if this query variable isn't present then insert 0. Or alternatively ensure all your yes/no fields default to 'off'. HTH S
In Section
Seekers of Perl Wisdom
|
|