R
Rev
I often use DDL in my code to creaet new tables, usually to hold all of the
table and field names or the SQL property from all of the queries, or all of
the Lable and Control Source properties from forms and reports.
This works well for me, however one little glitch that I can't figure out.
When I create a table that includes Yes/No fields, the fields do not display
as CheckBoxes as they do when I create Yes/No fields within Design View. Does
anyone know how I can create this property in code? I have code that should
create this property if it does not exist, and in the debug window when I
check to see if the property was created, it has. a check using Microsoft's
ADE Property Wizard also shows that the property exists after I run my code.
But when I open the table or use the field in a query, form, or report, it
displays as a textbox with values of -1 and 0. I don't want to have to go in
and manually change each one... I could create a lot of cool forms and
reports automatically except for this checkbox thing... ???
table and field names or the SQL property from all of the queries, or all of
the Lable and Control Source properties from forms and reports.
This works well for me, however one little glitch that I can't figure out.
When I create a table that includes Yes/No fields, the fields do not display
as CheckBoxes as they do when I create Yes/No fields within Design View. Does
anyone know how I can create this property in code? I have code that should
create this property if it does not exist, and in the debug window when I
check to see if the property was created, it has. a check using Microsoft's
ADE Property Wizard also shows that the property exists after I run my code.
But when I open the table or use the field in a query, form, or report, it
displays as a textbox with values of -1 and 0. I don't want to have to go in
and manually change each one... I could create a lot of cool forms and
reports automatically except for this checkbox thing... ???