jon24422531
Technical User
Hi
We have an intranet that I am developing and I would like users to be presented with different menu options subject to their permissions.
We have a SQL table (Users) that lists all company personnel and in there is a field for permissions, the options of which are: SuperUser, StandardUser, NoAccess
The UserName is determined thus:
The query is (after connection strings etc):
The Menu structure is:
and this is the error:
Microsoft VBScript compilation error '800a0400'
Expected statement
/navigate.asp, line 84
<%if (RSData.fieldItem.value) = "SuperUser" then
^
What am I missing? Is it not possible to use the fieldItem.value except when writing to a HTML table
Jonathan
We have an intranet that I am developing and I would like users to be presented with different menu options subject to their permissions.
We have a SQL table (Users) that lists all company personnel and in there is a field for permissions, the options of which are: SuperUser, StandardUser, NoAccess
The UserName is determined thus:
Code:
Dim objNTInfo
Set objNTInfo = CreateObject("WinNTSystemInfo")
GetUserName = objNTInfo.UserName
The query is (after connection strings etc):
Code:
StrSQL = "select WorkLogPermissions from users where userid = ('" & objNTInfo.UserName & "')"
Set MyRSData = MyConn.Execute(strSQL2)
The Menu structure is:
Code:
<%if (RSData.fieldItem.value) = "SuperUser" then
%>
<li><a href="IT/ITIndex2.html"target = "CENTER">IT Dept</a>
<%else%>
<li><a href="UnderConstruction.html"target = "CENTER">N/A</a>
<%end if%>
and this is the error:
Microsoft VBScript compilation error '800a0400'
Expected statement
/navigate.asp, line 84
<%if (RSData.fieldItem.value) = "SuperUser" then
^
What am I missing? Is it not possible to use the fieldItem.value except when writing to a HTML table
Jonathan