D
DS
I have a DSum in a rowsource.
Is it OK or is there a better way?
Thanks
DS
With Forms!frmFXHousePayment!ListOpen
..RowSource = "SELECT tblHouseChecks.CheckID,
Format([ChkDate],""m/dd/yyyy"") AS DT, " & _
"[ChkTotal]-Nz(DSum(""PayAppliedAmount"",""tblHousePayApplied"",""PayAppliedCheckID=""
& [CheckID]),0) AS RM, " & _
"tblHouseChecks.ChkPaid, tblHouseChecks.ChkTotal " & _
"FROM tblHouseChecks " & _
"WHERE (((tblHouseChecks.ChkPaid) = 0)) " & _
"ORDER BY tblHouseChecks.CheckID, Format([ChkDate],""m/dd/yyyy"");"
..ColumnCount = 5
..ColumnWidths = "1.1 in;1.25 in;.75 in;0 in.0 in"
..Requery
End With
Is it OK or is there a better way?
Thanks
DS
With Forms!frmFXHousePayment!ListOpen
..RowSource = "SELECT tblHouseChecks.CheckID,
Format([ChkDate],""m/dd/yyyy"") AS DT, " & _
"[ChkTotal]-Nz(DSum(""PayAppliedAmount"",""tblHousePayApplied"",""PayAppliedCheckID=""
& [CheckID]),0) AS RM, " & _
"tblHouseChecks.ChkPaid, tblHouseChecks.ChkTotal " & _
"FROM tblHouseChecks " & _
"WHERE (((tblHouseChecks.ChkPaid) = 0)) " & _
"ORDER BY tblHouseChecks.CheckID, Format([ChkDate],""m/dd/yyyy"");"
..ColumnCount = 5
..ColumnWidths = "1.1 in;1.25 in;.75 in;0 in.0 in"
..Requery
End With