Solved

How to have Phone # from Access appear as (###) ###-####

Posted on 2000-03-05
2
123 Views
Last Modified: 2010-05-02
I have a "seek" from which is loading data from access files into VB Labels and it appears as ##########. I want it to be (###)###-####.
What code will do this?

Thanks!

Dave
0
Comment
Question by:dtmaurer
2 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 50 total points
ID: 2585627
Dim sNumber As String
sNumber = "2125551212"
Label1.Caption = Format(sNumber, "(###) ###-####")
0
 

Author Comment

by:dtmaurer
ID: 2586358
Thanks!
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Question about INSTR  - need to extract data MS ACCESS query 6 59
Hide vba in gp 7 104
Advice in Xamarin 21 97
Need Nag Screen for Reboot if system up time is over 14 days 12 62
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

829 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