Hello Access Experts....
One of my staff members gets this message when she tries to log into a database I created. The DB is housed on a server that she maps to (mapped network drive). Also, I split the DB. Is that the reason for the error?? Any ideas?
7 1472
This is usually an indication of something wrong in your code.
Need more information. Does the app work for everyone else?
Are you using the runtime or the full Access.
Anymore info would be helpful to diagnose.
cheers,
Hello Access Experts....
One of my staff members gets this message when she tries to log into a database I created. The DB is housed on a server that she maps to (mapped network drive). Also, I split the DB. Is that the reason for the error?? Any ideas?
This is usually an indication of something wrong in your code.
Need more information. Does the app work for everyone else?
Are you using the runtime or the full Access.
Anymore info would be helpful to diagnose.
cheers,
The app works FINE for everyone else. But, she is the only one who has to map a drive. The others have the application on their server.
Are you using the runtime or the full Access?? Not sure what you mean by that. By my guess is full Access
OK post the code that is used to 'logon' as you mentioned in your first post. Since the user is not getting past the logon then something might be wrong with that code. Also indicate at what line the error occurs on since you are using the full Access.
I am assuming since the database is split that the BE is on the server. Just out of curiosity why does everyone have a front end (FE) on their own computer and this user does not?
cheers,
The app works FINE for everyone else. But, she is the only one who has to map a drive. The others have the application on their server.
Are you using the runtime or the full Access?? Not sure what you mean by that. By my guess is full Access
OK post the code that is used to 'logon' as you mentioned in your first post. Since the user is not getting past the logon then something might be wrong with that code. Also indicate at what line the error occurs on since you are using the full Access.
I am assuming since the database is split that the BE is on the server. Just out of curiosity why does everyone have a front end (FE) on their own computer and this user does not?
cheers,
- ' Name: mod_display_menu
-
' Function : display the switchboard after checking the access and password and password expiry date
-
' Date: 23/09/2007
-
-
-
Option Compare Database
-
Option Explicit
-
-
Public RptFlag As Integer
-
Public adminflag As Integer
-
Public operator As String
-
Public rptnumber As Integer
-
-
-
-
-
-
Sub display_menu()
-
On Error GoTo err_display_menu
-
-
' at this stage the userId and access level has been checked
-
-
-
Dim access_level As Integer
-
Dim finish_Date As Date
-
Dim port_syd As String
-
Dim valid_user As Integer
-
Dim check_user As Integer
-
Dim password_period As Date
-
Dim check_password As String
-
Dim strmsg As String
-
-
-
valid_user = 2
-
-
' **********************************************
-
' validate user_id
-
' **********************************************
-
-
check_user = DCount("[user_id]", "tbl_users", "user_id=forms!frm_main!user_id")
-
If check_user = 1 Then
-
valid_user = 2
-
Else
-
valid_user = 0
-
End If
-
-
' **********************************************
-
' validate password
-
' **********************************************
-
-
If valid_user = 2 Then
-
check_password = DLookup("[passwords]", "tbl_users", "user_id=forms!frm_main!user_id")
-
If UCase(check_password) = UCase(Forms!frm_main!password) Then
-
valid_user = 2
-
Else
-
valid_user = 1
-
End If
-
-
End If
-
-
' **********************************************
-
' validate access_level
-
' **********************************************
-
-
If valid_user = 2 Then
-
access_level = DLookup("[access_level]", "tbl_users", "user_id=forms!frm_main!user_id")
-
End If
-
-
Select Case valid_user
-
-
Case 0, 1
-
strmsg = " Access Denied" & _
-
vbCrLf & " Contact The Database Administrator if the problem persists. "
-
MsgBox strmsg, vbCritical, " INVALID UserID or Password "
-
-
' DoCmd.Quit
-
-
Case 2
-
Select Case access_level
-
Case 1 ' level1 menu
-
' validate password expiry
-
-
password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
-
If password_period < Date - 60 Then
-
strmsg = " Your password expired. You must change your password"
-
MsgBox strmsg, vbCritical, "Expired Password"
-
DoCmd.OpenForm "frm_change_password", acNormal
-
Else
-
adminflag = 1
-
operator = UCase(Forms!frm_main!user_id)
-
DoCmd.OpenForm "mainform"
-
End If
-
-
Case 2 ' level2 menu
-
' validate password expiry
-
-
password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
-
If password_period < Date - 60 Then
-
strmsg = " Your password expired. You must change your password"
-
MsgBox strmsg, vbCritical, "Expired Password"
-
DoCmd.OpenForm "frm_change_password", acNormal
-
Else
-
adminflag = 2
-
operator = UCase(Forms!frm_main!user_id)
-
DoCmd.OpenForm "mainform"
-
End If
-
-
Case Else
-
strmsg = " ACCESS DENIED !! " & _
-
vbCrLf & " Contact The Database Administrator if the problem persists. "
-
MsgBox strmsg, vbCritical, "INVALID UserID or Password"
-
End Select
-
-
End Select
-
-
exit_display_menu:
-
Exit Sub
-
-
err_display_menu:
-
MsgBox Err.decsription
-
Resume exit_display_menu
-
-
End Sub
Ok .
First I would like to know the line number so you need to bypass your On Error Goto line.
Does the user in question get the opportunity to enter his/her user information?
Does the login screen popup?
cheers, - ' Name: mod_display_menu
-
' Function : display the switchboard after checking the access and password and password expiry date
-
' Date: 23/09/2007
-
-
-
Option Compare Database
-
Option Explicit
-
-
Public RptFlag As Integer
-
Public adminflag As Integer
-
Public operator As String
-
Public rptnumber As Integer
-
-
-
-
-
-
Sub display_menu()
-
On Error GoTo err_display_menu
-
-
' at this stage the userId and access level has been checked
-
-
-
Dim access_level As Integer
-
Dim finish_Date As Date
-
Dim port_syd As String
-
Dim valid_user As Integer
-
Dim check_user As Integer
-
Dim password_period As Date
-
Dim check_password As String
-
Dim strmsg As String
-
-
-
valid_user = 2
-
-
' **********************************************
-
' validate user_id
-
' **********************************************
-
-
check_user = DCount("[user_id]", "tbl_users", "user_id=forms!frm_main!user_id")
-
If check_user = 1 Then
-
valid_user = 2
-
Else
-
valid_user = 0
-
End If
-
-
' **********************************************
-
' validate password
-
' **********************************************
-
-
If valid_user = 2 Then
-
check_password = DLookup("[passwords]", "tbl_users", "user_id=forms!frm_main!user_id")
-
If UCase(check_password) = UCase(Forms!frm_main!password) Then
-
valid_user = 2
-
Else
-
valid_user = 1
-
End If
-
-
End If
-
-
' **********************************************
-
' validate access_level
-
' **********************************************
-
-
If valid_user = 2 Then
-
access_level = DLookup("[access_level]", "tbl_users", "user_id=forms!frm_main!user_id")
-
End If
-
-
Select Case valid_user
-
-
Case 0, 1
-
strmsg = " Access Denied" & _
-
vbCrLf & " Contact The Database Administrator if the problem persists. "
-
MsgBox strmsg, vbCritical, " INVALID UserID or Password "
-
-
' DoCmd.Quit
-
-
Case 2
-
Select Case access_level
-
Case 1 ' level1 menu
-
' validate password expiry
-
-
password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
-
If password_period < Date - 60 Then
-
strmsg = " Your password expired. You must change your password"
-
MsgBox strmsg, vbCritical, "Expired Password"
-
DoCmd.OpenForm "frm_change_password", acNormal
-
Else
-
adminflag = 1
-
operator = UCase(Forms!frm_main!user_id)
-
DoCmd.OpenForm "mainform"
-
End If
-
-
Case 2 ' level2 menu
-
' validate password expiry
-
-
password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
-
If password_period < Date - 60 Then
-
strmsg = " Your password expired. You must change your password"
-
MsgBox strmsg, vbCritical, "Expired Password"
-
DoCmd.OpenForm "frm_change_password", acNormal
-
Else
-
adminflag = 2
-
operator = UCase(Forms!frm_main!user_id)
-
DoCmd.OpenForm "mainform"
-
End If
-
-
Case Else
-
strmsg = " ACCESS DENIED !! " & _
-
vbCrLf & " Contact The Database Administrator if the problem persists. "
-
MsgBox strmsg, vbCritical, "INVALID UserID or Password"
-
End Select
-
-
End Select
-
-
exit_display_menu:
-
Exit Sub
-
-
err_display_menu:
-
MsgBox Err.decsription
-
Resume exit_display_menu
-
-
End Sub
Ok .
First I would like to know the line number so you need to bypass your On Error Goto line.
Does the user in question get the opportunity to enter his/her user information?
Does the login screen popup?
cheers,
You say something???
I did... hmmmm.
I think I asked you to bypass your On Error Goto line and run the app so we can see what line it fails on.
cheers,
You say something???
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Matt |
last post by:
I tried to display all html control types in the form. But it has run
time error
"object doesn't support this property or method" on
document.write(obj.type);
Even I do document.write('hello...
|
by: Olaf |
last post by:
I have a frameset page witch contains the myFuc() function. The
function is accessed from a page in one of the frames in the frameset.
An example is shown below.
<input...
|
by: news.onetel.net.uk |
last post by:
I and my friend Karl have spent literally all day trying to find out what is
causing my error but we are zapped of any further functionality :)
I have a form that adds news records. You select...
|
by: tshad |
last post by:
I have a function:
function SalaryDisplay(me)
{
var salaryMinLabel = document.getElementById("SalaryMin");
salaryMinLabel.value = 200;
alert("after setting salaryMinLabel = " +...
|
by: fniles |
last post by:
I created a CAB file for a 3rd party control (StockChartX) it using
CABARC.exe that comes from Microsoft SDK.
In the CAB file I included the StockChartX.ocx and StockChartX.INF.
Then, I signed the...
|
by: stellstarin |
last post by:
hi all,
I have a HTML page with two forms.
While trying to add a hidden element in a first form by the default
javascript function, the error message 'object does not support this
property or...
|
by: John Olbert |
last post by:
Subject: Error is Object doesn't support this property or method
I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX
Control.
I get the following runtime error--
"Object...
|
by: Kevin Blount |
last post by:
I'm tyring to access an object created by using a method from a third
party API. The documentation tells me what object should be return,
and the properties of that object, but when I try and...
|
by: ADezii |
last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be:
Can I add New Records to the...
|
by: Peter Webb |
last post by:
I want to animate one object moving in front of another. I cannot re-render
the background as the object moves, as it would be extremely time consuming.
This is what I would like to do. I draw...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |