473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Object doesn't support this property or method

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?
Apr 9 '08 #1
7 1472
mshmyob
904 Expert 512MB
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?
Apr 9 '08 #2
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
Apr 10 '08 #3
mshmyob
904 Expert 512MB
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
Apr 10 '08 #4
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,
Expand|Select|Wrap|Line Numbers
  1. ' Name: mod_display_menu
  2. ' Function : display the switchboard after checking the access and password and password expiry date
  3. ' Date: 23/09/2007
  4.  
  5.  
  6. Option Compare Database
  7. Option Explicit
  8.  
  9. Public RptFlag As Integer
  10. Public adminflag As Integer
  11. Public operator As String
  12. Public rptnumber As Integer
  13.  
  14.  
  15.  
  16.  
  17.  
  18. Sub display_menu()
  19. On Error GoTo err_display_menu
  20.  
  21. ' at this stage the userId and access level has been checked
  22.  
  23.  
  24. Dim access_level As Integer
  25. Dim finish_Date As Date
  26. Dim port_syd As String
  27. Dim valid_user As Integer
  28. Dim check_user As Integer
  29. Dim password_period As Date
  30. Dim check_password As String
  31. Dim strmsg As String
  32.  
  33.  
  34. valid_user = 2
  35.  
  36. ' **********************************************
  37. ' validate user_id
  38. ' **********************************************
  39.  
  40. check_user = DCount("[user_id]", "tbl_users", "user_id=forms!frm_main!user_id")
  41. If check_user = 1 Then
  42. valid_user = 2
  43. Else
  44. valid_user = 0
  45. End If
  46.  
  47. ' **********************************************
  48. ' validate password
  49. ' **********************************************
  50.  
  51. If valid_user = 2 Then
  52. check_password = DLookup("[passwords]", "tbl_users", "user_id=forms!frm_main!user_id")
  53. If UCase(check_password) = UCase(Forms!frm_main!password) Then
  54. valid_user = 2
  55. Else
  56. valid_user = 1
  57. End If
  58.  
  59. End If
  60.  
  61. ' **********************************************
  62. ' validate access_level
  63. ' **********************************************
  64.  
  65. If valid_user = 2 Then
  66. access_level = DLookup("[access_level]", "tbl_users", "user_id=forms!frm_main!user_id")
  67. End If
  68.  
  69. Select Case valid_user
  70.  
  71. Case 0, 1
  72. strmsg = " Access Denied" & _
  73. vbCrLf & " Contact The Database Administrator if the problem persists. "
  74. MsgBox strmsg, vbCritical, " INVALID UserID or Password "
  75.  
  76. ' DoCmd.Quit
  77.  
  78. Case 2
  79. Select Case access_level
  80. Case 1 ' level1 menu
  81. ' validate password expiry
  82.  
  83. password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
  84. If password_period < Date - 60 Then
  85. strmsg = " Your password expired. You must change your password"
  86. MsgBox strmsg, vbCritical, "Expired Password"
  87. DoCmd.OpenForm "frm_change_password", acNormal
  88. Else
  89. adminflag = 1
  90. operator = UCase(Forms!frm_main!user_id)
  91. DoCmd.OpenForm "mainform"
  92. End If
  93.  
  94. Case 2 ' level2 menu
  95. ' validate password expiry
  96.  
  97. password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
  98. If password_period < Date - 60 Then
  99. strmsg = " Your password expired. You must change your password"
  100. MsgBox strmsg, vbCritical, "Expired Password"
  101. DoCmd.OpenForm "frm_change_password", acNormal
  102. Else
  103. adminflag = 2
  104. operator = UCase(Forms!frm_main!user_id)
  105. DoCmd.OpenForm "mainform"
  106. End If
  107.  
  108. Case Else
  109. strmsg = " ACCESS DENIED !! " & _
  110. vbCrLf & " Contact The Database Administrator if the problem persists. "
  111. MsgBox strmsg, vbCritical, "INVALID UserID or Password"
  112. End Select
  113.  
  114. End Select
  115.  
  116. exit_display_menu:
  117. Exit Sub
  118.  
  119. err_display_menu:
  120. MsgBox Err.decsription
  121. Resume exit_display_menu
  122.  
  123. End Sub
Apr 14 '08 #5
mshmyob
904 Expert 512MB
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,

Expand|Select|Wrap|Line Numbers
  1. ' Name: mod_display_menu
  2. ' Function : display the switchboard after checking the access and password and password expiry date
  3. ' Date: 23/09/2007
  4.  
  5.  
  6. Option Compare Database
  7. Option Explicit
  8.  
  9. Public RptFlag As Integer
  10. Public adminflag As Integer
  11. Public operator As String
  12. Public rptnumber As Integer
  13.  
  14.  
  15.  
  16.  
  17.  
  18. Sub display_menu()
  19. On Error GoTo err_display_menu
  20.  
  21. ' at this stage the userId and access level has been checked
  22.  
  23.  
  24. Dim access_level As Integer
  25. Dim finish_Date As Date
  26. Dim port_syd As String
  27. Dim valid_user As Integer
  28. Dim check_user As Integer
  29. Dim password_period As Date
  30. Dim check_password As String
  31. Dim strmsg As String
  32.  
  33.  
  34. valid_user = 2
  35.  
  36. ' **********************************************
  37. ' validate user_id
  38. ' **********************************************
  39.  
  40. check_user = DCount("[user_id]", "tbl_users", "user_id=forms!frm_main!user_id")
  41. If check_user = 1 Then
  42. valid_user = 2
  43. Else
  44. valid_user = 0
  45. End If
  46.  
  47. ' **********************************************
  48. ' validate password
  49. ' **********************************************
  50.  
  51. If valid_user = 2 Then
  52. check_password = DLookup("[passwords]", "tbl_users", "user_id=forms!frm_main!user_id")
  53. If UCase(check_password) = UCase(Forms!frm_main!password) Then
  54. valid_user = 2
  55. Else
  56. valid_user = 1
  57. End If
  58.  
  59. End If
  60.  
  61. ' **********************************************
  62. ' validate access_level
  63. ' **********************************************
  64.  
  65. If valid_user = 2 Then
  66. access_level = DLookup("[access_level]", "tbl_users", "user_id=forms!frm_main!user_id")
  67. End If
  68.  
  69. Select Case valid_user
  70.  
  71. Case 0, 1
  72. strmsg = " Access Denied" & _
  73. vbCrLf & " Contact The Database Administrator if the problem persists. "
  74. MsgBox strmsg, vbCritical, " INVALID UserID or Password "
  75.  
  76. ' DoCmd.Quit
  77.  
  78. Case 2
  79. Select Case access_level
  80. Case 1 ' level1 menu
  81. ' validate password expiry
  82.  
  83. password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
  84. If password_period < Date - 60 Then
  85. strmsg = " Your password expired. You must change your password"
  86. MsgBox strmsg, vbCritical, "Expired Password"
  87. DoCmd.OpenForm "frm_change_password", acNormal
  88. Else
  89. adminflag = 1
  90. operator = UCase(Forms!frm_main!user_id)
  91. DoCmd.OpenForm "mainform"
  92. End If
  93.  
  94. Case 2 ' level2 menu
  95. ' validate password expiry
  96.  
  97. password_period = DLookup("[password_date]", "tbl_users", "user_id = forms!frm_main!user_id")
  98. If password_period < Date - 60 Then
  99. strmsg = " Your password expired. You must change your password"
  100. MsgBox strmsg, vbCritical, "Expired Password"
  101. DoCmd.OpenForm "frm_change_password", acNormal
  102. Else
  103. adminflag = 2
  104. operator = UCase(Forms!frm_main!user_id)
  105. DoCmd.OpenForm "mainform"
  106. End If
  107.  
  108. Case Else
  109. strmsg = " ACCESS DENIED !! " & _
  110. vbCrLf & " Contact The Database Administrator if the problem persists. "
  111. MsgBox strmsg, vbCritical, "INVALID UserID or Password"
  112. End Select
  113.  
  114. End Select
  115.  
  116. exit_display_menu:
  117. Exit Sub
  118.  
  119. err_display_menu:
  120. MsgBox Err.decsription
  121. Resume exit_display_menu
  122.  
  123. End Sub
Apr 15 '08 #6
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???
Apr 17 '08 #7
mshmyob
904 Expert 512MB
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???
Apr 17 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
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...
2
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...
3
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...
54
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200; alert("after setting salaryMinLabel = " +...
0
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...
7
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...
5
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...
8
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...
0
ADezii
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...
9
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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
1
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...
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.