G
Gordon
I am using a temporary table to perform calculations before appending
the resultant invoice transaction records to my main table. The
temporary table is created in code like this:
strSQL = "CREATE TABLE tblInvoiceTransactionsTemp
(fldInvoiceTransactionID Double,fldProductID Double, fldIFAID
Double,fldQuantity Integer, fldFreeOfCharge YesNo,"
strSQL = strSQL & "fldEnqID Double, fldInvoiceHeaderID Double,
fldAgreedPrice Currency, fldVATRate Double)"
DoCmd.RunSQL strSQL
This all works fine but the problem is the VAT (tax) rate - the
current rate is 17.5% but when it reaches the temporary table it is
rounded to 18% which then inflates the VAT in the calculations.
The fldVAT rate is held in a lookup table as number format/field size
= single/Fixed format/1 decimal place.
How do I amend the SQL code above so that it produces 17.5 in the
temporary table and not 18 ?
Thanks for any help
Gordon
the resultant invoice transaction records to my main table. The
temporary table is created in code like this:
strSQL = "CREATE TABLE tblInvoiceTransactionsTemp
(fldInvoiceTransactionID Double,fldProductID Double, fldIFAID
Double,fldQuantity Integer, fldFreeOfCharge YesNo,"
strSQL = strSQL & "fldEnqID Double, fldInvoiceHeaderID Double,
fldAgreedPrice Currency, fldVATRate Double)"
DoCmd.RunSQL strSQL
This all works fine but the problem is the VAT (tax) rate - the
current rate is 17.5% but when it reaches the temporary table it is
rounded to 18% which then inflates the VAT in the calculations.
The fldVAT rate is held in a lookup table as number format/field size
= single/Fixed format/1 decimal place.
How do I amend the SQL code above so that it produces 17.5 in the
temporary table and not 18 ?
Thanks for any help
Gordon