Advertisement
Advertisement
| 05.15.2008 at 07:53AM PDT, ID: 23405370 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: |
DateFrom = format(Sheets("User").Range("I22").Value, "yyyy-mm-dd")
DateTill = format(Sheets("User").Range("I14").Value, "yyyy-mm-dd")
sSQL = "SELECT InvoiceLine.TxnDate, InvoiceLine.InvoiceLineItemRefFullName, InvoiceLine.InvoiceLineQuantity FROM InvoiceLine InvoiceLine WHERE (InvoiceLine.TimeCreated>={ts '" & DateFrom & " 00:00:00.000'} And InvoiceLine.TimeCreated<={ts '" & DateTill & " 00:00:00.000'}) ORDER BY InvoiceLine.TxnDate"
Set oConnection = New ADODB.Connection
Set oRecordset = New ADODB.Recordset
|