Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
Dim prdate As Date = Format(Check_Date.Value, "dd/MM/yyyy")
        cmd.CommandText = "SELECT MAINFILE.facno, MAX(MAINTRAN.fdate) AS fdate, MAINTRAN.fbalance FROM MAINTRAN INNER JOIN MAINFILE ON MAINFILE.facno = MAINTRAN.facno where MAINTRAN.fdate<='" & Format(prdate, "MM/dd/yyyy") & "' GROUP BY MAINFILE.facno, MAINTRAN.fbalance  "

                              
        With cmd
            dr = .ExecuteReader
        End With

        If dr.HasRows = True Then
            Do While dr.Read
                presentdaybal = dr!fbalance
            Loop
            dr.Close()       

its working fine ...
then when i display:facno(from mainfile table) fblance fdate(these two fields from MAINTRAN )
these fields are blank...why?
Posted
Updated 25-Nov-14 21:56pm
v2
Comments
KaushalJB 26-Nov-14 1:42am    
Have you provided any Query Command in Crystal Reports ?
lakshjoshi 26-Nov-14 2:43am    
no..

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