Hi =?Utf-8?B?REFUQUJBU0UgRm9ybWF0?=,
Thanks for the additional information. No guarantees on this, but if everything
works as I hope, you should be able to do this by extending the SELECT statement
that's bringing in the data. Something like this:
\s "SELECT `REPORT`, `PLACE`, Format(`HEAT_DATE`, 'dd.MM.yyyy') AS 'Heat
Date',`TOTAL_DOSE` FROM Dose.dbf WHERE ((`PERSON` IS NULL OR `PERSON` IS NOT NULL
))"
Note that Word is very finicky about the type of quotes and apostrophes, so the
above suggestion may not work as it stands. If you're using MSQuery to link the
data in (looks like you may be?), then I'd try setting this up in the MSQuery SQL
view and let the software worry about "translating" the SQL to something Word
understands. Please note that I'm also not certain whether the dBASE ODBC driver
knows how to work with the Format function. This will work with Access and Excel.
You may need to contact someone who's intimately acquainted with dBase to find
out if they have an equivalent function that's also supported by the ODBC driver.
DATABASE \d "C:\\DOSES\\Dose.dbf" \c "DSN=dBASE
Files;DBQ=C:\\DOSES;DefaultDir=C:\\DOSES;DriverId=277;FIL=dBase
IV;MaxBufferSize=2048;PageTimeout=600;" \s "SELECT `REPORT`, `PLACE`,
`HEAT_DATE`,`TOTAL_DOSE` FROM Dose.dbf WHERE ((`PERSON` IS NULL OR `PERSON` IS
NOT NULL ))" \l "16" \b "21"
where dose.dbf is data base name and `REPORT`, `PLACE`, `HEAT_DATE`,`TOTAL_DOSE
are the chosen fields I want to transfer into MS word document. The 'HEAT_DATE'
is a field of date type that is transferred as an US date format what is not
accepted in my country. So I try to improve it. It's very surprising that the
switch command like: fieldname\@ "dd.MM.yyyy" dosn't affect this format. Yes, of
course I can reach this database by Excel but why is it not possible to make it
within MS Word XP. In the MS Word 97, I simply didn't have such problems.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail