Is is possible to check the exsistance of a variable?
I am wanting to use checkboxes in a form, but I know that if it is not checked then the variable is not even created. Is there anyway to see if a variable was created or not?
SOP would be to initialize the variable to empty, or 0, and then set it to something else when a selection is made. Then you simply check to see if the variable is empty or 0, and if it's not, you continue with the process.
IMO it sounds like poor coding.
Typically its best to declare your variables right at the top.
If you're working in VB, then make sure to put 'Option Explicit' at the top of the module. This will require ALL variables to be declared. Then for your conditional you'll check the value of it as Whir noted above.
As suggested it would probably be easiest to just use a boolean and initialise it to the default state of the checkbox. You can then toggle its value as you see fit and just check its state when required.