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!

Alter Table to Change or Clear column format

Status
Not open for further replies.
Mar 15, 2016
14
0
0
US
I have created this statement to change a column from date/time to number and it works...

ALTER TABLE [Supplier Workbook] ALTER COLUMN [Total Time Spent] Number

but it's keeping the format of "h:nn:ss". Is there a way to add a statement to my query to clear or change the formatting to General or blank?

 
I think you would need some DAO code to change the format property of the field.

Code:
Currentdb.TableDefs("Supplier Workbook").Fields("Total Time Spent").Properties("Format")="Fixed"

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top