Solved

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

Posted on 2000-03-05
2
121 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Window placement 17 75
Opening Remote & Local Data Connection 2 51
passing parameter in sql procedure 9 56
TT Auto Dashboard 13 84
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

920 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

16 Experts available now in Live!

Get 1:1 Help Now