i tried to run this statement but i got some errors...can someone show me how to do this correctly? i want to filter my employee records showing only the records with equivalent transactions on a given date...
VB Code:
d = Date strGroupSQL = "SELECT * FROM tblContact " strDetailsSQL = "SELECT tblContact.ID, tblContact.Name, tblTransaction.Total, tblTransaction.TransID, tblTransaction.Paid, tblTransaction.Total, " strDetailsSQL = strDetailsSQL & "tblTransaction.Total - tblTransaction.Paid AS Balance ,tblTransaction.DueDate, tblTransaction.Settled " strDetailsSQL = strDetailsSQL & "FROM tblContact Where tblContact.ID IN (Select Distinct tblTransaction.ID from tblTransaction WHERE tblTransaction.Settled LIKE 0 AND tblTransaction.DueDate like " & d & ")" strShapeSQL = "SHAPE {" & strGroupSQL & "} " strShapeSQL = strShapeSQL & "APPEND ({" & strDetailsSQL & "} AS GrpDetails " strShapeSQL = strShapeSQL & "RELATE ID to ID) "






but willing to dig on facts!
Reply With Quote