By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,149 Members | 885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,149 IT Pros & Developers. It's quick & easy.

Expression

P: n/a
JA
How would I put dashes into a number? I have numbers like 1233450983 that
need to have dashes in them like 1-2334-5098-3. How can I add the dashes in
an update query?

Nov 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Fri, 17 Nov 2006 03:30:30 GMT, JA wrote:
How would I put dashes into a number? I have numbers like 1233450983 that
need to have dashes in them like 1-2334-5098-3. How can I add the dashes in
an update query?

Numbers 'Like 1233450983'?
If all of the values are 10 characters, and [FieldName] is a Text
datatype field, then:

Update YourTable Set YourTable.[FieldName] =
Format([FieldName],"@-@@@@-@@@@-@");

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Nov 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.