Solved

Access - Remove percent sign

Posted on 2010-09-14
6
673 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 92

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 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 33673880
As an update:UPDATE [Tablename] SET [columnname] = Replace([columnname], "%", "")As a select:SELECT [columnname], Replace([columnname], "%", "") AS NoPercSignFROM [Tablename]
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 92

Assisted Solution

by:Patrick Matthews
Patrick Matthews earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

809 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