Hello,
I have written the below query which works really great with the exception that it returns information from the year 2010 instead of 2015.
I have tried removing everything in the where clause except the => '04/01/2015' and still get 2010 info. any ideas?
Thanks,
dwg23
I have written the below query which works really great with the exception that it returns information from the year 2010 instead of 2015.
I have tried removing everything in the where clause except the => '04/01/2015' and still get 2010 info. any ideas?
Thanks,
dwg23
SQL:
Select distinct
tx.TxType,
tblapVoucher.PONumber,
tblapVoucher.InvoiceDate,
tblapVoucher.InvoiceAmount,
tblapVoucherLine.POLineNumber,
tblapVoucherLine.Qty,
tblapVoucherLine.UnitCost,
tblapVoucherLine.ExtendedCost,
tblapVendor.Name
From
tblglTxHistory tx Inner Join
tblapVoucherLine On Left(tx.TxNumber, 8) = tblapVoucherLine.VoucherNumber
Inner Join
tblapVoucher On tblapVoucherLine.VoucherNumber = tblapVoucher.VoucherNumber
Inner Join
tblapVendor On tblapVoucher.Vendor = tblapVendor.Vendor
Where
tx.TxSource = 'apvchr' And
tx.TxDate >= '2015/04/01' And
tx.TxDate <= '2015/04/30'