PC Review


Reply
Thread Tools Rate Thread

dissappearing front zeros in zip codes when using report "analyzing it with excel" option

 
 
Philip Leduc
Guest
Posts: n/a
 
      29th Nov 2006
when I build a report in Access and use the "analyze it with excel " on the
toolbar to export my data to excel, the front 0 in zip codes dissappears
because excel thinks it is number, even if there are other 9 digit zip-codes
in the same column (thise work fine). Any easy solution for this?


 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      29th Nov 2006
Which version of Access are you using? In 2002, I get Excel Smart Tags
telling me that it's a number stored as text:

ID
Zip

1
32714

2
90211

3
25541

4
32708

6
21218

7
21207

8
32789

9
32789

10
32714

11
90211

12
25541

13
32708

14
21218

15
21207

16
32789

17
01212


--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Philip Leduc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> when I build a report in Access and use the "analyze it with excel " on
> the toolbar to export my data to excel, the front 0 in zip codes
> dissappears because excel thinks it is number, even if there are other 9
> digit zip-codes in the same column (thise work fine). Any easy solution
> for this?
>



 
Reply With Quote
 
Philip Leduc
Guest
Posts: n/a
 
      29th Nov 2006
my zip fields are defined as text , I was using Access 2003 , just tried it
in Access 2000, same problem (the file I am using is Access 2000 file
format)
Do not see any smart tags...

"Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Which version of Access are you using? In 2002, I get Excel Smart Tags
> telling me that it's a number stored as text:
>
> ID
> Zip
>
> 1
> 32714
>
> 2
> 90211
>
> 3
> 25541
>
> 4
> 32708
>
> 6
> 21218
>
> 7
> 21207
>
> 8
> 32789
>
> 9
> 32789
>
> 10
> 32714
>
> 11
> 90211
>
> 12
> 25541
>
> 13
> 32708
>
> 14
> 21218
>
> 15
> 21207
>
> 16
> 32789
>
> 17
> 01212
>
>
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> "Philip Leduc" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> when I build a report in Access and use the "analyze it with excel " on
>> the toolbar to export my data to excel, the front 0 in zip codes
>> dissappears because excel thinks it is number, even if there are other 9
>> digit zip-codes in the same column (thise work fine). Any easy solution
>> for this?
>>

>
>



 
Reply With Quote
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      30th Nov 2006
Try changing the field size to 10 characters. Other than the OS, that is the
only possible difference that I can see. Are you using Win XP SP2?
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Philip Leduc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> my zip fields are defined as text , I was using Access 2003 , just tried
> it in Access 2000, same problem (the file I am using is Access 2000 file
> format)
> Do not see any smart tags...
>
> "Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Which version of Access are you using? In 2002, I get Excel Smart Tags
>> telling me that it's a number stored as text:
>>
>> ID
>> Zip
>>
>> 1
>> 32714
>>
>> 2
>> 90211
>>
>> 3
>> 25541
>>
>> 4
>> 32708
>>
>> 6
>> 21218
>>
>> 7
>> 21207
>>
>> 8
>> 32789
>>
>> 9
>> 32789
>>
>> 10
>> 32714
>>
>> 11
>> 90211
>>
>> 12
>> 25541
>>
>> 13
>> 32708
>>
>> 14
>> 21218
>>
>> 15
>> 21207
>>
>> 16
>> 32789
>>
>> 17
>> 01212
>>
>>
>> --
>> Arvin Meyer, MCP, MVP
>> http://www.datastrat.com
>> http://www.mvps.org/access
>> http://www.accessmvp.com
>>
>> "Philip Leduc" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> when I build a report in Access and use the "analyze it with excel " on
>>> the toolbar to export my data to excel, the front 0 in zip codes
>>> dissappears because excel thinks it is number, even if there are other 9
>>> digit zip-codes in the same column (thise work fine). Any easy solution
>>> for this?
>>>

>>
>>

>
>



 
Reply With Quote
 
Philip Leduc
Guest
Posts: n/a
 
      30th Nov 2006
Field size is 10 caracters and I am using win XP sp2. It is actually doing
this as well on my machine as well as on my clients...
I found one solution on the web that might work for my client, by selecting
the column and formating the column to special, zip, the front zeros
reappear even if they are not there in the cell.
They even appear in the mailmerge in word

Thanks for your help, though I am still intigued why you can export them and
I am not

"Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Try changing the field size to 10 characters. Other than the OS, that is
> the only possible difference that I can see. Are you using Win XP SP2?
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> "Philip Leduc" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> my zip fields are defined as text , I was using Access 2003 , just tried
>> it in Access 2000, same problem (the file I am using is Access 2000 file
>> format)
>> Do not see any smart tags...
>>
>> "Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Which version of Access are you using? In 2002, I get Excel Smart Tags
>>> telling me that it's a number stored as text:
>>>
>>> ID
>>> Zip
>>>
>>> 1
>>> 32714
>>>
>>> 2
>>> 90211
>>>
>>> 3
>>> 25541
>>>
>>> 4
>>> 32708
>>>
>>> 6
>>> 21218
>>>
>>> 7
>>> 21207
>>>
>>> 8
>>> 32789
>>>
>>> 9
>>> 32789
>>>
>>> 10
>>> 32714
>>>
>>> 11
>>> 90211
>>>
>>> 12
>>> 25541
>>>
>>> 13
>>> 32708
>>>
>>> 14
>>> 21218
>>>
>>> 15
>>> 21207
>>>
>>> 16
>>> 32789
>>>
>>> 17
>>> 01212
>>>
>>>
>>> --
>>> Arvin Meyer, MCP, MVP
>>> http://www.datastrat.com
>>> http://www.mvps.org/access
>>> http://www.accessmvp.com
>>>
>>> "Philip Leduc" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> when I build a report in Access and use the "analyze it with excel " on
>>>> the toolbar to export my data to excel, the front 0 in zip codes
>>>> dissappears because excel thinks it is number, even if there are other
>>>> 9 digit zip-codes in the same column (thise work fine). Any easy
>>>> solution for this?
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Joshua A. Booker
Guest
Posts: n/a
 
      30th Nov 2006
I have had this trouble in every version of access / excel. A query will go
to excel as text while a report based on the same query will go as number
and drop the zeros. You could try sending the query to excel rather than
the report. Or add a dummy line by using a union query like this:

SELECT "00A" as ZipCode,""as town,"" as households,"" as zone FROM
tblZipCodes UNION SELECT tblZipCodes.Zip AS ZipCode, tblZipCodes.Town,
tblZipCodes.HouseHolds, tblZipCodes.Zone
FROM tblZipCodes

Apparently, the export only looks at the first record to determine if it's
text or number so you need to make sure your dummy come first. I hate this
solution, but it's all I have found.

Lastly, you can try an export specification. And use CSV which can be
opened in excel.

HTH,
Josh

"Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Try changing the field size to 10 characters. Other than the OS, that is
> the only possible difference that I can see. Are you using Win XP SP2?
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> "Philip Leduc" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> my zip fields are defined as text , I was using Access 2003 , just tried
>> it in Access 2000, same problem (the file I am using is Access 2000 file
>> format)
>> Do not see any smart tags...
>>
>> "Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Which version of Access are you using? In 2002, I get Excel Smart Tags
>>> telling me that it's a number stored as text:
>>>
>>> ID
>>> Zip
>>>
>>> 1
>>> 32714
>>>
>>> 2
>>> 90211
>>>
>>> 3
>>> 25541
>>>
>>> 4
>>> 32708
>>>
>>> 6
>>> 21218
>>>
>>> 7
>>> 21207
>>>
>>> 8
>>> 32789
>>>
>>> 9
>>> 32789
>>>
>>> 10
>>> 32714
>>>
>>> 11
>>> 90211
>>>
>>> 12
>>> 25541
>>>
>>> 13
>>> 32708
>>>
>>> 14
>>> 21218
>>>
>>> 15
>>> 21207
>>>
>>> 16
>>> 32789
>>>
>>> 17
>>> 01212
>>>
>>>
>>> --
>>> Arvin Meyer, MCP, MVP
>>> http://www.datastrat.com
>>> http://www.mvps.org/access
>>> http://www.accessmvp.com
>>>
>>> "Philip Leduc" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> when I build a report in Access and use the "analyze it with excel " on
>>>> the toolbar to export my data to excel, the front 0 in zip codes
>>>> dissappears because excel thinks it is number, even if there are other
>>>> 9 digit zip-codes in the same column (thise work fine). Any easy
>>>> solution for this?
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      1st Dec 2006
I just tried it in Access 2003 and got the same result as in 2002. The only
possible difference that I can see is that I am exporting directly from the
query, whereas you said you were using the report.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Philip Leduc" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Field size is 10 caracters and I am using win XP sp2. It is actually doing
> this as well on my machine as well as on my clients...
> I found one solution on the web that might work for my client, by
> selecting the column and formating the column to special, zip, the front
> zeros reappear even if they are not there in the cell.
> They even appear in the mailmerge in word
>
> Thanks for your help, though I am still intigued why you can export them
> and I am not
>
> "Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Try changing the field size to 10 characters. Other than the OS, that is
>> the only possible difference that I can see. Are you using Win XP SP2?
>> --
>> Arvin Meyer, MCP, MVP
>> http://www.datastrat.com
>> http://www.mvps.org/access
>> http://www.accessmvp.com
>>
>> "Philip Leduc" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> my zip fields are defined as text , I was using Access 2003 , just tried
>>> it in Access 2000, same problem (the file I am using is Access 2000 file
>>> format)
>>> Do not see any smart tags...
>>>
>>> "Arvin Meyer [MVP]" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>>> Which version of Access are you using? In 2002, I get Excel Smart Tags
>>>> telling me that it's a number stored as text:
>>>>
>>>> ID
>>>> Zip
>>>>
>>>> 1
>>>> 32714
>>>>
>>>> 2
>>>> 90211
>>>>
>>>> 3
>>>> 25541
>>>>
>>>> 4
>>>> 32708
>>>>
>>>> 6
>>>> 21218
>>>>
>>>> 7
>>>> 21207
>>>>
>>>> 8
>>>> 32789
>>>>
>>>> 9
>>>> 32789
>>>>
>>>> 10
>>>> 32714
>>>>
>>>> 11
>>>> 90211
>>>>
>>>> 12
>>>> 25541
>>>>
>>>> 13
>>>> 32708
>>>>
>>>> 14
>>>> 21218
>>>>
>>>> 15
>>>> 21207
>>>>
>>>> 16
>>>> 32789
>>>>
>>>> 17
>>>> 01212
>>>>
>>>>
>>>> --
>>>> Arvin Meyer, MCP, MVP
>>>> http://www.datastrat.com
>>>> http://www.mvps.org/access
>>>> http://www.accessmvp.com
>>>>
>>>> "Philip Leduc" <(E-Mail Removed)> wrote in message
>>>> news:(E-Mail Removed)...
>>>>> when I build a report in Access and use the "analyze it with excel "
>>>>> on the toolbar to export my data to excel, the front 0 in zip codes
>>>>> dissappears because excel thinks it is number, even if there are other
>>>>> 9 digit zip-codes in the same column (thise work fine). Any easy
>>>>> solution for this?
>>>>>
>>>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding "All" as an option to a query list for criteria on a report =?Utf-8?B?RXJpYw==?= Microsoft Access Queries 4 9th Sep 2006 01:12 AM
Microsoft Access 2000 Report design - does reports have a Save Event Handler? Or How can I disable the right click "Save As" option in Report Print Preview? hmvicenik@yahoo.com Microsoft Access Security 1 21st Feb 2006 10:59 AM
how do i format zip codes that lead with a "0" in excel for a wor. =?Utf-8?B?ZXhlY2wgZm9ybWF0dGluZw==?= Microsoft Excel Setup 1 3rd Feb 2005 10:24 PM
Why do the zip codes starting with "0" in Excel format DROP the z. =?Utf-8?B?YmFyYmg=?= Microsoft Excel Crashes 2 8th Nov 2004 07:12 AM
Is there a way to put "scanable" UPC Codes into an Excel Spreadsheet Jon Microsoft Excel Misc 5 9th Sep 2003 09:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:58 PM.