Creating Yes/No field format programatically

J

JonWayne

If you programatically create a field object for a table, how do you set the
field's type to Yes/No?
 
D

Douglas J. Steele

How are you programmatically creating the field? Using the DAO CreateField
method, you'd use dbBoolean as the type. Using the DDL (ADD COLUMN), you'd
use YESNO. Using the Append method of the Columns collection in ADOX, you'd
use adBoolean.
 
J

JonWayne

Using DAO. I have been using dbBoolean but I get a textbox instead of a
checkbox as the control. How do I make it appear as a checkbox?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top