Formatting query output for phone number (1 Viewer)

johnkrytus

Registered User.
Local time
Today, 01:25
Joined
Mar 7, 2013
Messages
91
Will someone tell me what's wrong with the syntax of the format portion of this? please?
I copied >>> !\(999") "000\-0000;;_ <<< from the properties dropdown and am guessing therein lies my problem.

Code:
SELECT [FirstName] & " " & [LastName] & ", Supervisor" & "  " & Format([ContactNo1] "!\(999") "000\-0000;;_" AS exp, people.EmployeeID
FROM people;
 

CJ_London

Super Moderator
Staff member
Local time
Today, 06:25
Joined
Feb 19, 2013
Messages
16,708
you are missing a comma before and a bracket after your format string
 

johnkrytus

Registered User.
Local time
Today, 01:25
Joined
Mar 7, 2013
Messages
91
Thanks for the hint. I needed the comma. And the end bracket had been in so many places that it just got misplaced in the end.

I fixed it by getting away from the stupid wizard generated string

Code:
SELECT [FirstName] & " " & [LastName] & ", Supervisor" & "  " & Format( [ContactNo1], "(000)000-0000") AS exp, people.EmployeeID
FROM people;
 

Users who are viewing this thread

Top Bottom