Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Access - Remove percent sign

Posted on 2010-09-14
6
679 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 Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to line 23 53
Compile Error - Argument not optional - MS Access - VBA - Adobe Acrobat 2 26
default combobox value 12 18
Access Schema 6 25
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.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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…

856 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