That wouldn't affect it at all...what line of code is it crashing on?
Is it this one:
VB Code:
Set rs = m_Conn.Execute(strSQL)
You could always try this code:
VB Code:
strSQL = "SELECT ST_User_Status.User_Status "
strSQL = strSQL & "FROM ST_User_Access "
strSQL = strSQL & "INNER JOIN ST_User_Status ON ST_User_Status.User_Status_ID = ST_User_Access.Status "
strSQL = strSQL & "WHERE ST_User_Access.Username = '" & vName & "' "
strSQL = strSQL & "AND ST_User_Access.Password = '" & vPW & "' "
Set rs = New Recordset
With rs
.CursorLocation = adUseClient
.Open strSQL, m_Conn, adOpenForwardOnly, adLockReadOnly
Set .ActiveConnection = Nothing
If .EOF Then
GetStatusSTR = 0
Else
GetStatusSTR = .Fields("User_Status").Value
End If
End With
Set rs = Nothing
Hope this helps...
Woka