Solved

runtime error 424

Posted on 2001-08-10
8
259 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
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

856 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