473,407 Members | 2,315 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,407 software developers and data experts.

how to deal with run-time error 424 object required in VB6.

im trying to create a car park system but my MDIform 1 has an error.
here is my codes.

Expand|Select|Wrap|Line Numbers
  1. Private Sub MNUADDUSER_Click()
  2. MDIForm1.Hide
  3. FRMMANAGE.Show
  4. End Sub
  5.  
  6. Private Sub MDIForm_Lo()
  7. End Sub
  8.  
  9. Private Sub MDIForm_Load()
  10. Form1.Show
  11. MDIForm1.Hide
  12. End Sub
  13.  
  14. Private Sub MNUADMIN_Click()
  15. FRMMANAGEADMIN.Show
  16. MDIForm1.Hide
  17. End Sub
  18.  
  19. Private Sub MNUBACKUP_Click()
  20. FRMBACKUP.Show
  21. MDIForm1.Hide
  22. End Sub
  23.  
  24. Private Sub MNUCALCULATOR_Click()
  25. MDIForm1.Enabled = False
  26. Form1.Show
  27. End Sub
  28.  
  29. Private Sub MNUCARDETAIL_Click()
  30. MDIForm1.Hide
  31. Frm1CARDETAIL.Show
  32. Frm1CARDETAIL.TXTLICE.SetFocus
  33. End Sub
  34.  
  35. Private Sub MNUCARS_Click()
  36. DataReport1CARS.Show
  37. End Sub
  38.  
  39. Private Sub MNUCHECKEDINCARS_Click()
  40. Form1CHECKEDIN.Show
  41. MDIForm1.Hide
  42. End Sub
  43.  
  44. Private Sub MNUCHECKEDOUT_Click()
  45. Form1CHECKEDOUT.Show
  46. MDIForm1.Hide
  47. End Sub
  48.  
  49. Private Sub MNUCUSTOMER_Click()
  50. MDIForm1.Hide
  51. FRMCUSTOMERDETAIL.Show
  52. FRMCUSTOMERDETAIL.TXTCUSTOID.SetFocus
  53. End Sub
  54.  
  55. Private Sub mnudatareport_Click()
  56. MDIForm1.Hide
  57. DataReport1.Show
  58. End Sub
  59.  
  60. Private Sub MNUCUSTOMERS_Click()
  61. Load DataEnvironment1
  62. DataReport1CUSTOMER.Refresh
  63. DataReport1CUSTOMER.Show
  64. End Sub
  65.  
  66. Private Sub MNUEXIT_Click()
  67. CONFIRM = MsgBox("ARE YOU SURE YOU WANT TO EXIT?", vbYesNo, "EXIT")
  68. If CONFIRM = vbYes Then
  69. Unload Me
  70. End If
  71. End Sub
  72.  
  73. Private Sub MNUID_Click()
  74. Form1CARLOOKUP.Show
  75. End Sub
  76.  
  77. Private Sub MNULOCK_Click()
  78. CONFIRM = MsgBox("ARE YOU SURE YOU WANT TO LOCK THE SYSTEM?", vbYesNo)
  79. If CONFIRM = vbYes Then
  80. MsgBox "SYSTEM IS BEING LOCKED", vbInformation + vbOKOnly, "CONFIRMED"
  81. MDIForm1.Hide
  82. FrmLogin.Show
  83. FrmLogin.txtUserName.SetFocus
  84. End If
  85. End Sub
  86.  
  87. Private Sub MNUOFFICERDETAIL_Click()
  88. MDIForm1.Hide
  89. FrmOFFICERDETAIL.Show
  90. FrmOFFICERDETAIL.TXTOFCRID.SetFocus
  91. End Sub
  92.  
  93. Private Sub MNUOFFICERONDUTY_Click()
  94. DataReport1OFFICER.Show
  95. End Sub
  96.  
  97. Private Sub MNUOTHERS_Click()
  98. FRMMANAGE.Show
  99. MDIForm1.Hide
  100. End Sub
  101.  
  102. Private Sub MNUPAYMENT_Click()
  103. MDIForm1.Hide
  104. FRMDAILY.Show
  105. End Sub
  106.  
  107. Private Sub MUBACKUP_Click()
  108. FRMBACKUP.Show
  109. MDIForm1.Hide
  110. End Sub
  111.  
  112. Private Sub MNUPAYMENTS_Click()
  113.  
  114. End Sub
  115.  
  116. Private Sub MNUREPORTS_Click()
  117. Form1REPORTS.Show
  118. MDIForm1.Hide
  119. End Sub
  120.  
  121.  
  122. please help ASAP.
Nov 20 '15 #1
1 2193
Are you sure you can hide a MDIform?
Nov 24 '15 #2

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

Similar topics

4
by: Oli | last post by:
Hi Hope someone can help: <% set rsProdInfo = Server.CreateObject("ADODB.Recordset") rsProdInfo.Open "TBL_Products", Conn intTotal = 0
1
by: Carolyn Speakman | last post by:
Hi, I'm trying to amend an intranet .asp page but keep getting this error. The error only occurs when I pull the WHOLE intranet off the server and try to run it locally. The error isn't there...
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...
4
by: dubing | last post by:
Hi, Our webpage uses the following JavaScript code. function toggleSubmenu(divId, link) { var div = document.getElementById(divId); div.style.display = (div.style.display == 'block') ?...
1
by: Andrew Phillipo | last post by:
I have some code that works everywhere but IE5.0, including IE5.5. Here is a snippet of where the code seems to go wrong: Location.prototype.change = function(current) { this.current = current;...
4
by: Genken | last post by:
Hi can anybody help me i get this error when running this code. Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' And then a line number indicating where the error is, i...
10
by: jasone | last post by:
hi everyone! any advice given will be MUCH appreciated, i have spent about 10 hours on this bit of script... a rating system. I am having realt trouble overcoming this problem at runtime ...
3
by: ShyamKrishnegowda | last post by:
We are writing test scripts to our product. In one of the script we are facing an issue. This test script will create a COM component and executes the following function. O1 and O2 are out...
1
by: ShyamKrishnegowda | last post by:
We are writing test scripts to our product. In one of the script we are facing an issue. This test script will create a COM component and executes the following function. O1 and O2 are out...
1
by: Silju Augustine | last post by:
Sir, I am trying with an asp page to handle with one Access Database. When I try to read from the Access file it comes correctly. But when I try to Add Records or Update the records it shows an...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.