![]() |
#1
|
|||
|
|||
![]()
Hi,
I have a datasource in an excel file and I am trying to insert a database as a field, where the customer number is equal to a mergefield "customer number" the code is the following: { DATABASE \d "C:\\Statement\\Datasource.xlsx" \s "SELECT `Client Billing Document Number` AS `No Doc`, FORMAT(`Invoice Date`, 'dd/MM/yyyy') AS `Fecha Doc`, FORMAT(`Due Date`, 'dd/MM/yyyy') AS `Vencimiento`, FORMAT(`Client Document Currency Balance`, '##,###,##0.00') AS `Importe`, `Client Document Currency` AS `Moneda` FROM `Data$` WHERE ((`Debtor Number` = '50010117')) ORDER BY `Invoice Date`, `Due Date`" \l "37" \b "51" \h } the mailmerge works, but it gives an error when it tries to open the datasource. Error has occurred: Data type mismatch in criteria expression. Word was unable to open the data source A field calculation error occurred in record 1 Any ideas? Thank you in advance. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
SaneMan | Word VBA | 2 | 11-01-2013 02:38 AM |
![]() |
LittleCrunch | Word | 1 | 10-28-2013 03:50 AM |
MACRO - Insert row based on Form Field Criteria | Elan05 | Word VBA | 5 | 04-16-2013 06:39 AM |
![]() |
gsrikanth | Excel | 3 | 06-29-2012 05:23 AM |
![]() |
Markw | Word | 5 | 11-19-2009 08:29 AM |