PC Review


Reply
Thread Tools Rate Thread

I am trying to convert an access table into a fixed length text fi

 
 
=?Utf-8?B?azM2Mzk=?=
Guest
Posts: n/a
 
      13th Feb 2006
The problem I am having is that I cannot convert an access numeric field into
a fixed length, right justified, zero filled numeric field. In the case of a
numeric field with 2 defined decimal places, I am unable to tell the
conversion process to drop the decimal indicator while retaining to
characters to the right of the decimal point. Any assistance or suggestions
would be appreciated! Thanks!
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      14th Feb 2006
On Mon, 13 Feb 2006 13:34:31 -0800, "k3639"
<(E-Mail Removed)> wrote:

>The problem I am having is that I cannot convert an access numeric field into
>a fixed length, right justified, zero filled numeric field. In the case of a
>numeric field with 2 defined decimal places, I am unable to tell the
>conversion process to drop the decimal indicator while retaining to
>characters to the right of the decimal point. Any assistance or suggestions
>would be appreciated! Thanks!


Use the Format() function to create a calculated field, and import
from that Query with the calculated field rather than exporting from
the table itself. To dispose of the decimal places just multiply by
100 (e.g. Cint(12.365 * 100) = 1236) E.g. put in a vacant Field cell
something like

ExpMyNumber: Format(CInt([MyNumber]*100, "#0"))


John W. Vinson[MVP]
 
Reply With Quote
 
=?Utf-8?B?azM2Mzk=?=
Guest
Posts: n/a
 
      21st Feb 2006
John,

I guess I am not very familiar with the query process, I am not sure where I
am to enter the Format() option, and the *100 generates an error message.
Also, this seems to only generate another access table, rather than the
output of a text file, and I cannot right-justify the fields. Could you
assist further, I am new to this process.

Thanks!!!

"John Vinson" wrote:

> On Mon, 13 Feb 2006 13:34:31 -0800, "k3639"
> <(E-Mail Removed)> wrote:
>
> >The problem I am having is that I cannot convert an access numeric field into
> >a fixed length, right justified, zero filled numeric field. In the case of a
> >numeric field with 2 defined decimal places, I am unable to tell the
> >conversion process to drop the decimal indicator while retaining to
> >characters to the right of the decimal point. Any assistance or suggestions
> >would be appreciated! Thanks!

>
> Use the Format() function to create a calculated field, and import
> from that Query with the calculated field rather than exporting from
> the table itself. To dispose of the decimal places just multiply by
> 100 (e.g. Cint(12.365 * 100) = 1236) E.g. put in a vacant Field cell
> something like
>
> ExpMyNumber: Format(CInt([MyNumber]*100, "#0"))
>
>
> John W. Vinson[MVP]
>

 
Reply With Quote
 
Douglas J Steele
Guest
Posts: n/a
 
      21st Feb 2006
There's a slight typo in John's formula: a closing parenthesis is missing.
It should be

ExpMyNumber: Format(CInt([MyNumber]*100), "#0"))

It's a query, not a table, but it can be exported the same as a table can.



--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"k3639" <(E-Mail Removed)> wrote in message
news:B67F4986-3F4D-4963-86CE-(E-Mail Removed)...
> John,
>
> I guess I am not very familiar with the query process, I am not sure where

I
> am to enter the Format() option, and the *100 generates an error message.
> Also, this seems to only generate another access table, rather than the
> output of a text file, and I cannot right-justify the fields. Could you
> assist further, I am new to this process.
>
> Thanks!!!
>
> "John Vinson" wrote:
>
> > On Mon, 13 Feb 2006 13:34:31 -0800, "k3639"
> > <(E-Mail Removed)> wrote:
> >
> > >The problem I am having is that I cannot convert an access numeric

field into
> > >a fixed length, right justified, zero filled numeric field. In the

case of a
> > >numeric field with 2 defined decimal places, I am unable to tell the
> > >conversion process to drop the decimal indicator while retaining to
> > >characters to the right of the decimal point. Any assistance or

suggestions
> > >would be appreciated! Thanks!

> >
> > Use the Format() function to create a calculated field, and import
> > from that Query with the calculated field rather than exporting from
> > the table itself. To dispose of the decimal places just multiply by
> > 100 (e.g. Cint(12.365 * 100) = 1236) E.g. put in a vacant Field cell
> > something like
> >
> > ExpMyNumber: Format(CInt([MyNumber]*100, "#0"))
> >
> >
> > John W. Vinson[MVP]
> >



 
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
Does Access store its data in fixed length or variable length rows Dennis Microsoft Access Database Table Design 2 15th Jan 2010 04:33 AM
Transfer table to fixed length text records =?Utf-8?B?QmFudGVyaXN0YQ==?= Microsoft Access External Data 5 28th Jul 2006 06:34 PM
Export table to fixed length changes the sort of the table =?Utf-8?B?QWNjZXNzTmV3Ymll?= Microsoft Access Getting Started 2 6th Oct 2005 09:20 PM
HELP! How to do mixed length record export from Access ? (EDI Fixed Length Ascii or X.12) tmb Microsoft Access 4 23rd Mar 2005 08:11 AM
Export fixed length text file from MS Access 2000 Orchid Microsoft Access Queries 0 20th Jul 2003 06:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:47 AM.