dbTalk Databases Forums  

Format a field created by code in ms access 2007

comp.databases.ms-access comp.databases.ms-access


Discuss Format a field created by code in ms access 2007 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Wisso
 
Posts: n/a

Default Format a field created by code in ms access 2007 - 05-12-2010 , 09:15 AM






I create a table contains one field "TypesSelected" using the code of
ms access 2007 as below .
i still have on question to finish it , i need to know how can i
format this field "TypesSelected" to be such format YES/NO usind code
of ms access 2007?

Set Dat = DBEngine.Workspaces(0)(0)
Set tdf = Dat.CreateTableDef("TypeSubform")

With tdf
Set fld = .CreateField("TypesSelected", dbBoolean)
fld.DefaultValue = 0
fld.f = "Yes/No"
.Fields.Append fld
End With

Dat.TableDefs.Append tdf

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.