I am trying to run this query in the back end. The information that is selected through this query is used to generate emails further on. When I go to generate the emails, I get the Run-time error 3601
Code:strQuery_Appointment = "SELECT TableALOA.CFN, TableLocation_ALOA.Location, TableLocation_ALOA.Date_Location, TableLocation_ALOA.FieldCaptain, TableLocation_ALOA.Address_1, TableLocation_ALOA.Address_2, TableLocation_ALOA.Room, TableALOA.Appointment, TableALOA.DBN " & _ "FROM TableLocation_ALOA INNER JOIN (TableALOA INNER JOIN TableSchools ON TableALOA.ID_Schools = TableSchools.ID) ON TableLocation_ALOA.ID = TableALOA.Location " & _ "WHERE (((TableALOA.CFN)='" & rcdNetwork!CFN & "') AND ((TableLocation_ALOA.Location)='" & rcdLocation!Location & "')) " & _ "ORDER BY TableALOA.Appointment, TableALOA.DBN;" Set rcdAppointment = CurrentDb.OpenRecordset(strQuery_Appointment, dbOpenDynaset)
Set rcdAppointment is highlighted in the error message.


Too few Parameters Error
Reply With Quote

