Dear All,
I am facing a very strange problem, on running below query in command windows it gives correct records, whereas in click event of the button gives different result:
*dt1 = Thisform.contMaster.Contperiod1.Datefromto1._datepicker1.Value
*dt2 = Thisform.contMaster.Contperiod1.Datefromto1._datepicker2.Value
dt1 = {01/01/2015}
dt2 = {14/02/2016}
In command windows gives 1814 records which is correct and,
in click event of the button gives 1719 records.
Can someone point me what is there which I am missing?
Thanks
Saif
I am facing a very strange problem, on running below query in command windows it gives correct records, whereas in click event of the button gives different result:
*dt1 = Thisform.contMaster.Contperiod1.Datefromto1._datepicker1.Value
*dt2 = Thisform.contMaster.Contperiod1.Datefromto1._datepicker2.Value
dt1 = {01/01/2015}
dt2 = {14/02/2016}
Code:
Select rawSom.Sono, rawSom.Sodate, rawSom.pcode, Customer.full_name, Customer.pTerms,;
rawSom.enteredby, rawSom.Salesman, rawSom.refno, rawSom.refdate, ;
rawSom.discamount, rawSo.categ, rawSo.ShpDate,;
rawSom.Curr, rawSom.isocode, rawSom.Currency, rawSom.Sign, rawSom.currrate,;
rawSom.discrem, rawSom.remarks, rawSo.Rcode, ;
rawSo.quantity, rawSo.qtyavail, rawSo.unit, ;
rawSo.rate, Cast((quantity*rate) As N(10,2)) As original, ;
CAST((qtyavail*rate) As N(10,2)) As delivered ;
FROM ;
village!rawSom ;
inner Join village!rawSo ;
ON rawSom.Sono = rawSo.Sono ;
inner Join village!Customer ;
ON rawSom.pcode = Customer.pcode;
WHERE rawSom.Sodate Between dt1 And dt2 ;
INTO Cursor ViewSo Readwrite
In command windows gives 1814 records which is correct and,
in click event of the button gives 1719 records.
Can someone point me what is there which I am missing?
Thanks
Saif