Douglas said:
Works fine for me (although in order to get the text fields at the front, I
had to use "ORDER BY Val(tblChecks.ChkAlias), tblChecks.ChkAlias")
Hi Douglas,
Here is the code....perhaps I'm doing something else wrong?
With Me.ListAll
..RowSource = "SELECT tblChecks.TabID, tblChecks.ChkAlias,
tblChecks.CheckID, " & _
"tblCheckDetails.CDMenuID, tblChecks.ChkGuests, tblChecks.ChkPaid,
tblChecks.ChkServer," & _
"tblChecks.ChkPrinted, tblChecks.ChkDividedCheck, tblChecks.ChkTypeID,
tblChecks.ChkCancelled, tblChecks.ChkFXSep " & _
"FROM (tblTabs INNER JOIN tblChecks ON tblTabs.TabID = tblChecks.TabID)
" & _
"LEFT JOIN tblCheckDetails ON tblChecks.CheckID =
tblCheckDetails.CDCheckID " & _
"GROUP BY tblChecks.TabID, tblChecks.ChkAlias, tblChecks.CheckID, " & _
"tblCheckDetails.CDMenuID, tblChecks.ChkGuests, tblChecks.ChkPaid,
tblChecks.ChkServer, " & _
"tblChecks.ChkPrinted, tblChecks.ChkDividedCheck, tblChecks.ChkTypeID,
tblChecks.ChkCancelled, tblChecks.ChkFXSep " & _
"HAVING (((tblChecks.ChkPaid) = 0) " & _
"And ((tblChecks.ChkPrinted) = 0) " & _
"And ((tblChecks.ChkTypeID) Not Like 5) " & _
"And ((tblChecks.ChkDividedCheck) = 0) " & _
"And ((tblChecks.ChkCancelled) = 0) " & _
"And ((tblChecks.ChkFXSep) = 0)) " & _
"ORDER BY Val(tblChecks.ChkAlias)ASC;"
..ColumnCount = 5
..ColumnWidths = "0 in;2 in;0 in;0 in;0 in"
..Requery
End With