D
DosPrompt
SelectCommand="SELECT A.RowID, A.Account AS [Account], A.Relationship AS
[Relationship], B.City AS [City], B.State AS [State], B.Zip AS [Zip],
A.MainPhone AS [MainPhone], A.ProspectStatus AS [ProspectStatus] FROM
CRM_Accounts AS A INNER JOIN CRM_AddressLookup AS B ON A.AccountID =
B.AccountID WHERE (([Username] = @Username) AND ([Account] LIKE '%' +
@Account + '%') AND ([City] LIKE '%' + @City + '%') AND ([Zip] LIKE '%' +
@Zip + '%') AND ([MainPhone] LIKE '%' + @MainPhone + '%'))"
<SelectParameters>
<asp:ControlParameter ControlID="strAcct" DefaultValue="%"
Name="Account" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="strCity" DefaultValue="%"
Name="City" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="strZip" DefaultValue="%"
Name="Zip" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="strPhone" DefaultValue="%"
Name="MainPhone" PropertyName="Text"
Type="String" />
<asp:SessionParameter Name="Username" SessionField="sUser"
Type="String" />
</SelectParameters>
I GET THE ERROR
===================================
Invalid column name 'A.Username'.
Can someone help me?
- Thanks
[Relationship], B.City AS [City], B.State AS [State], B.Zip AS [Zip],
A.MainPhone AS [MainPhone], A.ProspectStatus AS [ProspectStatus] FROM
CRM_Accounts AS A INNER JOIN CRM_AddressLookup AS B ON A.AccountID =
B.AccountID WHERE (([Username] = @Username) AND ([Account] LIKE '%' +
@Account + '%') AND ([City] LIKE '%' + @City + '%') AND ([Zip] LIKE '%' +
@Zip + '%') AND ([MainPhone] LIKE '%' + @MainPhone + '%'))"
<SelectParameters>
<asp:ControlParameter ControlID="strAcct" DefaultValue="%"
Name="Account" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="strCity" DefaultValue="%"
Name="City" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="strZip" DefaultValue="%"
Name="Zip" PropertyName="Text"
Type="String" />
<asp:ControlParameter ControlID="strPhone" DefaultValue="%"
Name="MainPhone" PropertyName="Text"
Type="String" />
<asp:SessionParameter Name="Username" SessionField="sUser"
Type="String" />
</SelectParameters>
I GET THE ERROR
===================================
Invalid column name 'A.Username'.
Can someone help me?
- Thanks