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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating a Percent Field in a Query

Status
Not open for further replies.

TryTryAgain

Programmer
Mar 17, 2005
15
US
I'm using a query to calculate a field that I have defined as a percent format in the query. However, in the table the format remains blank and I have to go in and set it to a percent. Is there any way to force the format of the field in the table to a percent when running the query to create the table?
 
You will need to mess with the field properties after the field is created
Code:
db.Tabledefs("myTable").Fields("pct").Properties("Format") = "Percent"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top