export number format

W

wk6pack

Hi,

I have tried to export the following query with the format function but I
still get values like 2.00 when I only want 2
SELECT ExportTable.UID, Format([Type],"0") AS fType, ExportTable.Firstname,
ExportTable.MiddleName, ExportTable.Surname, ExportTable.Username,
ExportTable.Password, ExportTable.Grade, ExportTable.School,
ExportTable.Classname, ExportTable.TeacherUID, ExportTable.Filler
FROM ExportTable;

Am I doing something wrong??

thanks,
Will
 
W

wk6pack

I'm exporting the query. I run the query to see the dataset and then chose
file|export.

John Nurick said:
Hi Will,

Are you exporting the query or the table?

Hi,

I have tried to export the following query with the format function but I
still get values like 2.00 when I only want 2
SELECT ExportTable.UID, Format([Type],"0") AS fType, ExportTable.Firstname,
ExportTable.MiddleName, ExportTable.Surname, ExportTable.Username,
ExportTable.Password, ExportTable.Grade, ExportTable.School,
ExportTable.Classname, ExportTable.TeacherUID, ExportTable.Filler
FROM ExportTable;

Am I doing something wrong??

thanks,
Will

John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
J

John Nurick

What are you exporting it to? Are you using "Export formatted"?

The query you posted should export Type without no decimal places if
your exporting to a text file (certainly it works for me); but if you're
exporting to Excel or a database format things can be different and you
may need to format the data in the destination application.


I'm exporting the query. I run the query to see the dataset and then chose
file|export.

John Nurick said:
Hi Will,

Are you exporting the query or the table?

Hi,

I have tried to export the following query with the format function but I
still get values like 2.00 when I only want 2
SELECT ExportTable.UID, Format([Type],"0") AS fType, ExportTable.Firstname,
ExportTable.MiddleName, ExportTable.Surname, ExportTable.Username,
ExportTable.Password, ExportTable.Grade, ExportTable.School,
ExportTable.Classname, ExportTable.TeacherUID, ExportTable.Filler
FROM ExportTable;

Am I doing something wrong??

thanks,
Will

John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.

John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
W

wk6pack

I'm exporting to a text file. I dont know what happened but I opened the
file and it did work today. Maybe I didnt give it time to finish exporting
or it didnt overwrite the file.

thanks for you help.
Will
John Nurick said:
What are you exporting it to? Are you using "Export formatted"?

The query you posted should export Type without no decimal places if
your exporting to a text file (certainly it works for me); but if you're
exporting to Excel or a database format things can be different and you
may need to format the data in the destination application.


I'm exporting the query. I run the query to see the dataset and then chose
file|export.

John Nurick said:
Hi Will,

Are you exporting the query or the table?


Hi,

I have tried to export the following query with the format function but I
still get values like 2.00 when I only want 2
SELECT ExportTable.UID, Format([Type],"0") AS fType, ExportTable.Firstname,
ExportTable.MiddleName, ExportTable.Surname, ExportTable.Username,
ExportTable.Password, ExportTable.Grade, ExportTable.School,
ExportTable.Classname, ExportTable.TeacherUID, ExportTable.Filler
FROM ExportTable;

Am I doing something wrong??

thanks,
Will


John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.

John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top