Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.

  #1  
Old 09-17-2001, 08:17 AM
Propig
 
Posts: n/a
Default Access Question

Okay.

I have an Access97 database front end with a SQL 2000 backend. Here is one of my problems - I am going to start small and work my way up.

I have a text field that contains numbers. Example 0003. The reason it is a text field is because of the leading zeros. I need to extract this field to excel. The problem is, when I extract the field it turns it into a number and drops the zeros. I have tried using a string function. I have tried adding an ' before the first 0. I have tried formatting the field. So far nothing seems to work. Does anybody have any suggestions???
Reply With Quote
  #2  
Old 09-25-2001, 08:10 AM
brainiac
 
Posts: n/a
Default Re: Access Question

That's strange. EVerytime I export from access to excell, it treats anything in a text field as a string (ie print("0003")) and drops it in excel. What version of excel? One thing you might want to try is converting to plain text first, comma delimited values and see if you can import that txt file into access. It will read everything in dbl quotes as strings, not numbers.

Otherwise, in excel, you will need to lead numbers with a ' in order to maintain it's format.
Reply With Quote
  #3  
Old 09-25-2001, 10:41 AM
Propig
 
Posts: n/a
Default Re: Access Question

Excel 2000. Access97. SQL Server 2000.

I have even tried adding an ' before the number - it comes out as '00003. I think I found away around this though. If I extract the query instead of the report, it does not drop the zero's! Go figure
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:46 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.