bill201
asked on
how to add a column to a exist table with a query in access 2013
hi
i want to add a coulumn to table that the values are format like percents something like this
i want to add a coulumn to table that the values are format like percents something like this
ALTER TABLE SampleTable
ADD COLUMN LO double (percent)
ASKER
But I want it look visually like a percent
The formatting of the value is normally done in the user interface not in the actual field in the database, so the value in the database would be 50.0 and you would format it to show 50.0% on screen.
If you manipulate the field manually using access then you can set the format property to percent, but I dont know if you can do that in SQL.
If you manipulate the field manually using access then you can set the format property to percent, but I dont know if you can do that in SQL.
ASKER
is there some other way how to do it with vba ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ALTER TABLE SampleTable ADD COLUMN LO double
Double either takes no parameters or two parameters
See here for data types http://www.w3schools.com/sql/sql_datatypes.asp