Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Table field to percent

Status
Not open for further replies.

timotai

Technical User
Apr 13, 2002
119
0
0
GB
HI all

I am using the following code to create a table:

Code:
    Set dbs = CurrentDb
    Set tdf = dbs.CreateTableDef(tabname)
    Set fld = tdf.CreateField("system", dbText, 30)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Potential_Availability", dbText, 30)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("Actual_Availability", dbText, 30)
    tdf.Fields.Append fld
    Set fld = tdf.CreateField("SLA", dbDouble, 30)
    tdf.Fields.Append fld
    dbs.TableDefs.Append tdf
    Set dbs = Nothing

I want to change the SLA field to format as percent. How can I do this?

Thanks

Tim
 
Take a look at the Properties collection of the DAO.Field object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top