PC Review


Reply
Thread Tools Rate Thread

Creating Yes/No field format programatically

 
 
JonWayne
Guest
Posts: n/a
 
      3rd Jun 2005
If you programatically create a field object for a table, how do you set the
field's type to Yes/No?


 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      3rd Jun 2005
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.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"JonWayne" <(E-Mail Removed)> wrote in message
news:SnNne.46326$(E-Mail Removed)...
> If you programatically create a field object for a table, how do you set
> the
> field's type to Yes/No?
>
>



 
Reply With Quote
 
JonWayne
Guest
Posts: n/a
 
      3rd Jun 2005
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?


"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:(E-Mail Removed)...
> 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.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
>
> "JonWayne" <(E-Mail Removed)> wrote in message
> news:SnNne.46326$(E-Mail Removed)...
> > If you programatically create a field object for a table, how do you set
> > the
> > field's type to Yes/No?
> >
> >

>
>



 
Reply With Quote
 
Alex Dybenko
Guest
Posts: n/a
 
      3rd Jun 2005
You have to add a property "DisplayControl" and set it to CheckBox

--
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com


"JonWayne" <(E-Mail Removed)> wrote in message
news:0%One.40206$(E-Mail Removed)...
> 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?
>
>
> "Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
> news:(E-Mail Removed)...
>> 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.
>>
>> --
>> Doug Steele, Microsoft Access MVP
>> http://I.Am/DougSteele
>> (no e-mails, please!)
>>
>>
>>
>> "JonWayne" <(E-Mail Removed)> wrote in message
>> news:SnNne.46326$(E-Mail Removed)...
>> > If you programatically create a field object for a table, how do you
>> > set
>> > the
>> > field's type to Yes/No?
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programatically change a Number field to a Text field Chris O''Neill Microsoft Access VBA Modules 1 1st Oct 2008 07:47 AM
programatically creating worksheets =?Utf-8?B?SmFuZXQgUGFuaWdoZXR0aQ==?= Microsoft Excel Programming 9 21st Feb 2007 02:43 AM
Creating Comment Programatically adp1207 Microsoft Excel Programming 0 16th May 2006 09:58 PM
Adding Follow Up field to Field Chooser Programatically. c Microsoft Outlook VBA Programming 3 25th Feb 2006 02:10 PM
The percentage format of a field when creating a table =?Utf-8?B?U2Vhbg==?= Microsoft Access 4 7th Jun 2004 02:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 PM.