Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to get the records from Two tables I am using the Following Coding
But it is not working. Please help me
select T1.id,T1.ODate,T1.DeliDate,T1.Particulars,T1.Amount,T2.Orderid,
Coalesce(sum(T2.paidamount),0) from tbl_Hostels T1 Left Join tbl_HostelPayment T2
on T2.Orderid= T1.id where T1.Billpaid='Cancel'  and
T1.ODate<='" & Format(DTPFrom.Value, "MM-dd-yyyy") & "'
and T1.ODate<='" & Format(DTPTo.Value, "MM-dd-yyyy") & "'
order by T1.id "
Posted

Hi Devausha,


I think you have problem with date
put date in yyyy-MM-dd format
 
Share this answer
 
I have Solved The code is working thank you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900