Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Access - Remove percent sign

Posted on 2010-09-14
6
Medium Priority
?
756 Views
Last Modified: 2012-05-10
It is possible to remove a percent sign from a field in a table and just leave the number?  Lets say the table is Account and the field is cost, is there some VBA to just remove "%"

Any help is appreciated
0
Comment
Question by:JohnMac328
  • 3
  • 2
6 Comments
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 33673811
JohnMac328,Is the data type for the column text, or is it numeric with percent formatting?Patrick
0
 

Author Comment

by:JohnMac328
ID: 33673836
It is a text field
0
 
LVL 93

Accepted Solution

by:
Patrick Matthews earned 2000 total points
ID: 33673880
As an update:UPDATE [Tablename] SET [columnname] = Replace([columnname], "%", "")As a select:SELECT [columnname], Replace([columnname], "%", "") AS NoPercSignFROM [Tablename]
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 93

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 2000 total points
ID: 33673893
So, in VBA, for example:DoCmd.RunSQL "UPDATE [Tablename] SET [columnname] = Replace([columnname], '%', '')"
0
 

Expert Comment

by:Saichand
ID: 33673964
Please check the attached file.
0
 

Author Closing Comment

by:JohnMac328
ID: 33673968
Great thanks, they all work fine
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question