Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: inserting checkboxes into yes/no field in Access

by simon.proctor (Vicar)
on Apr 21, 2006 at 08:59 UTC ( #544820=note: print w/replies, xml ) Need Help??


in reply to inserting checkboxes into yes/no field in Access

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
  • Comment on Re: inserting checkboxes into yes/no field in Access

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://544820]
help
Chatterbox?
[Eily]: that's not what I'd call a silent h :)
[LanX]: see soundfile https://en. wiktionary.org/ wiki/human# Pronunciation
[Your Mother]: Just Another Perl 'Acker.
[LanX]: I pronounce it 'juːmən'
[Your Mother]: Hey, let's not bring antisemitism into the conversation.
[LanX]: for centuries posh English speakers tried to approach French, that's where all the trouble starts
[Eily]: Just another Perl coeurs
[Eily]: (perl with hearts, 'Acker with a French accent is pronunced like coeurs)
[LanX]: IMHO 'ju' for 'u' happens in English where they can't pronounce the French u (or German )
[LanX]: and I'm sure I read that *hotel* used to be pronounced 'otel by the English upperclass

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-03-27 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.