Hi Doug
Thanks for your response. I had tried previously, and I get this message:
Circular reference caused by alias 'phone' in query definitions Select list.
Please look at my SQL and see if this helps:
SELECT Orders.StartDate, Orders.OrderID, [FirstName] & " " & [LastName] AS
Expr1, Format([Phone],"(@@@)@@@-@@@@") AS Phone
FROM Customer INNER JOIN Orders ON Customer.CustomerID = Orders.CustomerID
WHERE (((Orders.StartDate) Between [Forms]![OrderDateForm]![txtStartDate]
And [Forms]![OrderDateForm]![txtEndDate]))
ORDER BY Orders.StartDate;
Thanks
Douglas J. Steele said:
Sounds as though you're using an InputMask. When you do, that just affects
how the data appears, not how it's stored in the table.
In the query, use the Format function (not the Format property) on the phone
number field:
Format([PhoneNumber], "(@@@)@@@-@@@@")
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
I'm beginning to believe you can't do it. My list box is tied to a query.
The
phone number is formated for (@@@)@@@-@@@@, but the numbers output are
423888999. In the query datasheet view the formatting is showing
correctly.
Probably something really simple or impossible.