
Originally Posted by
Rod
My immediate reaction is: Yes. We need to see the SQL. Try debugging to see exactly what the RowSource is at all stages.
Here is my SQL statement; it is kind of complicated. I tried to keep things simple in my original post.
Also, I haven't used debugging before so I am not sure what to do there.
Code:
list_Attendees.RowSource = "SELECT table_Attendence.Qualification AS [Q?], " & _
"table_Attendence.Last_Name, table_Attendence.First_Name, table_Attendence.Email, " & _
"JustifyString(""form_Qualification"",""list_Attendees""," & _
"Format([table_Attendence]![Interest_Rating]/100,""percent""),4,-1) AS [IR%], " & _
"JustifyString(""form_Qualification"",""list_Attendees""," & _
"Format(24*60*([table_Attendence]![Leave_Time]-[table_Attendence]![Join_Time])/" & _
Val(text_Class_Length) & ",""percent""),5,-1) AS [TIS%], " & _
"JustifyString(""form_Qualification"",""list_Attendees""," & _
"Format([table_Attendence]![Poll_Answered]/" & _
DLookup("[Poll_Asked]", "table_Session", "[Webinar_ID] = """ & combo_Webinar.Column(1) & """ " & _
"And [Start] = #" & combo_Webinar.Column(2) & "#") & ",""percent""),6,-1) AS [PQA%] " & _
"FROM table_Attendence WHERE (((table_Attendence.Webinar_ID)= """ & combo_Webinar.Column(1) & """) " & _
"AND ((table_Attendence.Start)= #" & combo_Webinar.Column(2) & "#)) " & _
"ORDER BY table_Attendence.Last_Name, table_Attendence.First_Name, table_Attendence.Email"