473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Deleting a "+" from a phone number in Access table...help!

Hello all,

I am fairly new to Access and am running into a problem. I am looking at a table that has all phone numbers that have called our business for the month of November. However, many of our numbers that have automatically populated have populated like this in 2003 Access, and this an example of how the column appears:

Incoming Calling Number (Column header)

+12097774566
+12104380608
2104007083
+12106733242
2093212556
+12107788847

I have 1500 records, and I am trying to delete the "+"'s and sort the phone numbers A/Z. I have copied this into Excel and deleted the "+" by the find "+" and "replace with nothing" tool. While that deleted the "+", when I tried to sort A/Z I found that Excel sorted the # that were previously "+", and then sorted all the regular numbers separately.
I also tried to do the same in notepad and paste the column back in, but Access couldn't handle the paste and freezed up.

If I could have help with this, I would be very thankful. As stated above, I just started using Access. Please be very descriptive! :)
Dec 7 '07 #1
2 1309
Dököll
2,364 Expert 2GB
I have 1500 records, and I am trying to delete the "+"'s and sort the phone numbers A/Z. I have copied this into Excel and deleted the "+" by the find "+" and "replace with nothing" tool. While that deleted the "+", when I tried to sort A/Z I found that Excel sorted the # that were previously "+", and then sorted all As stated above, I just started using Access. Please be very descriptive! :)
Hey there, have a look here, see if this article saves you, I actually am going to try it for the dash in certain SSNs 000-00-0000. Not too savvy at Access either, I feel your pain. If I get it, I try to explain, not making any promises though so please try yourself ;-)

http://support.microsoft.com/?kbid=210433
Dec 7 '07 #2
Dököll
2,364 Expert 2GB
Hey there, have a look here, see if this article saves you, I actually am going to try it for the dash in certain SSNs 000-00-0000. Not too savvy at Access either, I feel your pain. If I get it, I try to explain, not making any promises though so please try yourself ;-)

http://support.microsoft.com/?kbid=210433
Just in case the link no longer works...

Expand|Select|Wrap|Line Numbers
  1.  
  2. Function FindTabs(WhichField As String) As String
  3.    Dim intCounter As Integer
  4.    Dim strText As String
  5.    Dim intStart As Integer
  6.  
  7.    intStart = 1
  8.    intCounter = 1
  9.    strText = WhichField
  10.  
  11.    Do Until intCounter = 0
  12.       ' Chr(9) is the Tab character.
  13.       ' Replace Chr(9) with the ANSI code for the character
  14.       ' you are searching for.
  15.       intCounter = InStr(intStart, strText, Chr(9))
  16.       intStart = intCounter + 1
  17.       If intCounter > 0 And Not IsNull(intCounter) Then
  18.          strText = ReplaceTabs(intCounter, strText)
  19.       End If
  20.    Loop
  21.  
  22.    FindTabs = strText
  23. End Function
  24.  
  25.  
Good luck to you!

Dököll
Dec 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: ScottH | last post by:
I was looking for thw SQL to delete dupes from a table, and came across this. All who saw it agreed in principle, but I can't quite figure out the logic. If we are deleting all rows whose rowid...
59
by: Rico | last post by:
Hello, I have an application that I'm converting to Access 2003 and SQL Server 2005 Express. The application uses extensive use of DAO and the SEEK method on indexes. I'm having an issue when...
0
by: rob | last post by:
I have a visio file that models a database. I added a view to the project but then decided to delete it again. I simply hit the delete key after which I got a dialog saying: "Remove selected item...
2
by: James | last post by:
Hello, Whenever I try to delete a Read Only file using FileInfoObject.Delete I get "Access to the path "File name and path" is Denied" error. This does not happen with other files. Any ideas?...
2
by: sajithamol | last post by:
How we can find out by Query that wether a particular table exists?
25
by: tekctrl | last post by:
Anyone: I have a simple MSAccess DB which was created from an old ASCII flatfile. It works fine except for something that just started happening. I'll enter info in a record, save the record,...
1
by: =?Utf-8?B?d2lsZG9y?= | last post by:
when I highlight the "short file" (result of internet download) ,and click delete, the response is "could not find this file", "verify the location and try again"
13
by: ramprakashjava | last post by:
hi, i hav "java.lang.NullPointerException" error while Deleting table records using checkbox in jsp here i enclosed files help quickly plzzz.. ...
14
by: confusedfusion | last post by:
Not sure how many form submissions that have been lost over the years before I started but the company has a contact form that the required fields when validation fails the error message is going...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.