Solved

Access - Remove percent sign

Posted on 2010-09-14
6
653 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now