<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=2652&image=1&table=forumtopics' class='bbc_emoticon' alt=':o' />
I have zero experience with all of this and am trying to figure it out from scratch. So here goes,
For some reason whe I am on the 'list' view of the ASPRunner created forms for my user database when I click on 'View' to look at the individual record it seems to be confusing the username for the actual column name (which is UName in my table). I also get it when I try to select 'delete' for a row on the form. I am not sure why this is. Here is the error:
Table: dbo.tblUsers, View record [UName: jsmith]
--------------------------------------------------------------------------------
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'jsmith'.
/users/tblUsers_view.asp, line 65
Here is the code in the tblUsers_variables.asp file where I think part of the problem may lie (it may be taking 'UName' from here in that third line and confusing it with the column name??). Those 'strKeyField' variables are creating this URL:
http://www.ecaregiver.com/users/tblUsers_v...only&masterkey=
Here is the code:
<!--#include file='commonfunctions.asp'-->
<%
strKeyField="UName"
strKeyField2=""
strKeyField3=""
strTableName="[dbo].[tblUsers]"
PageSize=20
session("pagesize") = PageSize
strLeftWrapper="["
strRightWrapper="]"
gstrOrderBy="ORDER BY [UName] ASC"
bKeyFieldEditable1=True
bKeyFieldEditable2=False
bKeyFieldEditable3=False
gstrSQL = "select [UName], [UserPW], [UserTitle], [UserFirstName], [UserLastName], [UserAddress1], [UserAddress2], [UserCity], [UserState], [UserZIP], [UserPhone], [UserFax], [UserEmail], [CaregiverUser], [ProviderNum], [AccessCounter], [ReceiveStNewsLetter], [AccessLevel] From [dbo].[tblUsers]"
gstrQuote = Session(strTableName & "_gstrQuote")
gstrQuote2 = Session(strTableName & "_gstrQuote2")
gstrQuote3 = Session(strTableName & "_gstrQuote3")
cNumberOfChars = 80
cXMLTopNode = "rs"
cXMLRowNode = "row"
cAdvSecurityMethod = 0
%>