Hi all,
I have a form with several checkboxes on it.
The value of these boxes is set to True.
When the box is ticked, the value true is returned in the post data, but if a box isn't ticked, then no value is returned.
I want to have either true or false entered into my MS Access database via an SQL Insert Into statement.
For this reason, I'm trying to come up with a way of checking the value of the field(s) in question and then, if the value is null, changing it to False.
I have triled both of the following, but both return the error of type mismatch.
Any ideas would be most welcomed.
Thanks,
Barry
ICT Network Administrator
IT Services Manager
I have a form with several checkboxes on it.
The value of these boxes is set to True.
When the box is ticked, the value true is returned in the post data, but if a box isn't ticked, then no value is returned.
I want to have either true or false entered into my MS Access database via an SQL Insert Into statement.
For this reason, I'm trying to come up with a way of checking the value of the field(s) in question and then, if the value is null, changing it to False.
I have triled both of the following, but both return the error of type mismatch.
Code:
fieldname = Nz(fieldname, "False")
fieldname = IIF(IsNull(filedname), "False", fieldname)
Any ideas would be most welcomed.
Thanks,
Barry
ICT Network Administrator
IT Services Manager