Session Error

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,698
Latest member
alexxx

Latest Threads

Top