No problem, Mark.
Open a new query in design view. When the box pops up to pick a table, close
it without picking anything. Click on View>SQL view.
Paste what I gave you into the blank window.
Change MyTable to the name of your table.
Change PhoneNum to the name of your phone field.
Click the ! icon to run the query.
--
Bill Mosca, MS Access MVP
"SinCity" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Bill,
>
> Forgive me (I'm a newbie).....but how exactly do I run the following
> command that you suggested?
>
>
> Update MyTable
> Set [PhoneNum] = Replace(Replace([PhoneNum],"(",""),") ","-")
>
>
> If you wouldn't mind telling me what to point and click on I would
> appreciate it.
> (Access 2003)
>
> Thx,
> Mark
>
>
>
>
> "Bill Mosca, MS Access MVP" <(E-Mail Removed)> wrote in message
> news:uq$(E-Mail Removed)...
>> Run an update like this:
>>
>> Update MyTable
>> Set [PhoneNum] = Replace(Replace([PhoneNum],"(",""),") ","-")
>>
>> The inside Replace is removing the left paren. The outside Replace
>> removes the right paren and space.
>>
>> You might want to store just the numbers and use formatting and input
>> masks for the user. That way you stay flexible as to how th enumber
>> displays.
>>
>> --
>> Bill Mosca, MS Access MVP
>>
>>
>> "SinCity" <(E-Mail Removed)> wrote in message
>> news:%(E-Mail Removed)...
>>>I have a table that contains some data like this...
>>>
>>> Phone_Numbers
>>> 212-560-5602
>>> 212-587-2938
>>>
>>> And I have an Excel document that contains data like this...
>>>
>>> phone_numbers
>>> (211) 787-3957
>>> (217) 827-2999
>>>
>>> How can I import the Excel data into the Access Database so that they
>>> are treated
>>> both as phone numbers? I also do not want to allow duplicates.
>>>
>>> Please help!
>>>
>>>
>>>
>>
>>
>
>
|