I am trying to pull data all from the Attendee table and the CustomerName from the Customer Table, below is the code, I can't seem to get it to work when I added the select from Customer stuff:
Attendee
CustomerNumber
AttendeeFirstName
AttendeeLastName
Customer
CustomerNumber
CustomerName
IF Request.Querystring("CustomerNumber"
= "" then
strsql = "select * from [Attendee],[Customer]"
If dbwhere <> "" Then
strsql = strsql & " WHERE " & dbwhere
strsql = strsql & " WHERE ATTENDEE.CUSTOMERNUMBER=CUSTOMER.CUSTOMERNUMBER"
End If
If OrderBy <> "" then
strsql = strsql & " ORDER BY [" & OrderBy & "] " & Session("Attendee_OT"
End if
ELSE...
The error message "Item cannot be found in the collection corresponding to the requested name or ordinal." refers to the following lines:
<%
x_ID = rs("ID"
x_CustomerNumber = rs("CustomerNumber"
x_AttendeeFirstName = rs("AttendeeFirstName"
x_AttendeeLastName = rs("AttendeeLastName"
x_AttendeeCity = rs("AttendeeCity"
x_AttendeeState = rs("AttendeeState"
x_CustomerName = rs("CustomerName"
%>
Attendee
CustomerNumber
AttendeeFirstName
AttendeeLastName
Customer
CustomerNumber
CustomerName
IF Request.Querystring("CustomerNumber"
strsql = "select * from [Attendee],[Customer]"
If dbwhere <> "" Then
strsql = strsql & " WHERE " & dbwhere
strsql = strsql & " WHERE ATTENDEE.CUSTOMERNUMBER=CUSTOMER.CUSTOMERNUMBER"
End If
If OrderBy <> "" then
strsql = strsql & " ORDER BY [" & OrderBy & "] " & Session("Attendee_OT"
End if
ELSE...
The error message "Item cannot be found in the collection corresponding to the requested name or ordinal." refers to the following lines:
<%
x_ID = rs("ID"
x_CustomerNumber = rs("CustomerNumber"
x_AttendeeFirstName = rs("AttendeeFirstName"
x_AttendeeLastName = rs("AttendeeLastName"
x_AttendeeCity = rs("AttendeeCity"
x_AttendeeState = rs("AttendeeState"
x_CustomerName = rs("CustomerName"
%>