Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

runtime error 424

Posted on 2001-08-10
8
Medium Priority
?
264 Views
Last Modified: 2008-03-03
What is run time error 424 object required mean?
I type this code to event on click
   Private Sub Invoice_No_Enter()
Dim FindInvoiceNo As Integer
FindInvoiceNo = Text1.Value
Me.RecordsetClone.FindFirst "[invoiceNo] = " & FindInvoiceNo
Me.Bookmark = Me.RecordsetClone.Bookmark

End Sub

When I run it show the message above and I press debug  It has yellow highlight on line 3

This code i want to move record in form by follow what I put in textbox. Ex If I type 131 into textbox which is name invoice no, the record in form should change too.
But the problem is nothing change accept subform.  The subform change to detail of  invoice no 131 but name and address and so on still not change

Could help me.  I am not good about code   could tell me detail step by step     THANK YOU
0
Comment
Question by:ftmkay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 6

Expert Comment

by:devtha
ID: 6372722
Is there a text1 on the form. If so just use text1
0
 
LVL 12

Expert Comment

by:Paurths
ID: 6372734
hi ftmkay ,

try this

Private Sub Invoice_No_Enter()
Dim FindInvoiceNo As Integer
FindInvoiceNo = me.Text1
Me.RecordsetClone.FindFirst "[invoiceNo] = " & FindInvoiceNo
Me.Bookmark = Me.RecordsetClone.Bookmark

End Sub
0
 
LVL 6

Expert Comment

by:devtha
ID: 6372742
if you use me then type me!text1
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 6

Expert Comment

by:PsychoDazey
ID: 6372800

Private Sub Invoice_No_Enter()
Dim FindInvoiceNo As String
FindInvoiceNo = Me.[Text1].Value
Me.RecordsetClone.FindFirst "[invoiceNo] = " & FindInvoiceNo
Me.Bookmark = Me.RecordsetClone.Bookmark
0
 
LVL 6

Expert Comment

by:devtha
ID: 6372812
:-)
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6372882
I have never seen anyone use the RecordSetClone property of a form in that manner.  Usually a local recordset object is created, and then set equal to the Form's recordsetClone, like this


Private Sub Invoice_No_Enter()

Dim rsLocal as Recordset
Dim FindInvoiceNo As Integer

FindInvoiceNo = Text1.Value
Set rsLocal = Me.RecordSetClone
rsLocal.FindFirst "[invoiceNo] = " & FindInvoiceNo
Me.Bookmark = rsLocal.Bookmark

End Sub
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6994532
for ftmkay

It's time to clean up this TA, so I will leave a recommendation in Community Support that this question is:
 - PAQ'd and pts removed
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 7014586
Per recommendation, points NOT refunded and question closed by
Netminder
CS Moderator
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question