I am not very good at revising code and need suggestions how to get some code to do the things I want. Below I have code that gets the appointments for the active date BUT I also need to get those appointments by ApptLocation field as well as the ApptDate from tblAppointments. Can some make some suggestions?
strSQL = "SELECT tblAppointments.*, tblHour.HourID " & _
"FROM tblAppointments INNER JOIN tblHour " & _
"ON tblAppointments.ApptStartTime = tblHour.Hours " & _
"WHERE tblAppointments.ApptDate = #" & dtePubMyDate & "# " & _
"ORDER BY ApptStartTime;"