Hi Peter,
Thanks for responding. Responses are as follows
1. Can you post the SQL query code being used here?
It is
SELECT [Raw Employee Data from Excel Query].FirstName, [Raw Employee Data
from Excel Query].[Last Name], [Raw Employee Data from Excel Query].[Dept
Name], [Raw Employee Data from Excel Query].[New Grade], [Raw Employee Data
from Excel Query].[New Job Title], [Raw Employee Data from Excel Query].[New
Scale Min], [Raw Employee Data from Excel Query].[New Scale Max], [Raw
Employee Data from Excel Query].[Old FTE Salary], [Raw Employee Data from
Excel Query].[New FTE Salary], [Raw Employee Data from Excel Query].[New Act
Salary], [Raw Employee Data from Excel Query].[Red Circle Protection
Required], [Raw Employee Data from Excel Query].[Salary Progression
Protection Req'd], [Raw Employee Data from Excel Query].[Old Scale Max]
FROM [Raw Employee Data from Excel Query]
WHERE ((([Raw Employee Data from Excel Query].[Last Name])<>"Vacant") AND
(([Raw Employee Data from Excel Query].[Red Circle Protection
Required])="No") AND (([Raw Employee Data from Excel Query].[Salary
Progression Protection Req'd])="No"));
2. Are the underlying fields currency types, or more general floating
point types, e.g. double?
The problem field above is [New Scale Max]
The data comes from an excel spreadsheet where it is formatted currency with
zero decimal places.
The field properties on the Access query was originally empty. I then set it
the format to currency with 0 decimal places.
Either way, it comes into word as 3 decimal places (non currency).
There is a look-up table in the original excel worksheet that fully
populates another worksheet. It's the latter that is used as the data-source
for the Access query and then the word doc
All the values in the access query shows the correct format (ie 0)
3. If the query code is using the format function to format the output,
does it make any difference if you covert the original amount to a double
in the query using cdbl(myamount) before applying formatting?
No format function is used in the initial query code AFAIK
4. If you know that the values never have any decimal places, are you able
to format the data further in Word using e.g.
{ =int({ MERGEFIELD myfield }) \# 0 }
(where all the {} are the special field code brace pairs you can insert
using ctrl-F9) ? This assumes that you need truncation rather than
rounding for these values.
Yes <G>. But if I switch toggle 'Preview Results' on and off in word, only
the field value is shown whereas others switch between field name and field
value.
Hope this helps
Rob