Rabu, 27 Maret 2019

RE: [MS_AccessPros] Export spec truncating number

 

Doyce

 

Editing the MSYS table is not really a good idea. It can throw off dependent indices. Edit the spec through the wizard. Just start an export and use that spec. Make sure you set the field to currency with decimal places = 4.

 

If I find a few spare minutes I'll see if I can reproduce this to find out what the exact steps should be but I think what I just said is correct.

 

Regards,

Bill Mosca

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Wednesday, March 27, 2019 4:38 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: RE: [MS_AccessPros] Export spec truncating number

 

 

Bill,

 

Here is an update. I found the spec in Msysimexcolumns table. The data type shows as 7 (double I think) I changed it to 5 (currency I think). Now the amount is rounding up to .38. I need it to export as .375. There is a validation on the export file before it gets uploaded into Oracle where the price is multiplied by the quantity. This record is kicking out because neither .37 or .38 match the total which was multiplied by .375.

Doyce



---In MS_Access_Professionals@yahoogroups.com, <winberry.doyce@...> wrote :

Good morning Bill,

 

The field's data type was double. I changed it to currency but that has no effect at this time.. How do I edit the spec? I can't even remember how I created it. It's been too long. :-)

 

Doyce



---In MS_Access_Professionals@yahoogroups.com, <wrmosca@...> wrote :

Hi Doyce

 

What is the spec field's data type? Currency should hold 4 decimal places. You probably just have to edit the spec and save it as the same name.

 

Regards,

Bill Mosca

 

From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Tuesday, March 26, 2019 6:47 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Export spec truncating number

 

 

Hello Pros,

I created an export specification years ago that has worked perfectly for about 15 years. It exports a table to a csv file. The table comes from invoice detail. Now for the first time ever, we invoiced something at .375 each instead of whole pennies. When the file is exported, the spec truncates the price to .37 even though the table shows the price correctly as .375. How can I fix this? I know the spec is hidden and I can't remember how I created it in the first place. I have googled this but have only found answers for saving exports. I guess I'm not using the corrct search terms. Here is the code I run to export the table.

DoCmd.TransferText acExportDelim, "ARInvoiceDetailUpload Export Specification", "tblARInvoiceDetailUpload", "N:\Accnting\AR Upload\RSI_AR_INV_LINES_" & Format(Date, "mm_dd_yy") & ".rsl"

Thanks in advance.

Doyce Winberry

__._,_.___

Posted by: "Bill Mosca" <wrmosca@comcast.net>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


SPONSORED LINKS
.

__,_._,___

Tidak ada komentar:

Posting Komentar