Results 1 to 3 of 3

Thread: 424 - Object Required - Which one?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    5

    424 - Object Required - Which one?

    Code:
    Private Sub Form_Load()
    
    Text1.Text = Date
    Text2.Text = Date
    
    End Sub
    The debugger targets "Date" as being the culprit.
    Which reference am I missing for it to load when executed?

    I've added Microsoft ActiveX Data Objects 2.6 Library to the default.

  2. #2

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    5

    Re: 424 - Object Required - Which one?

    Well you can tell I'm a rookie.

    I had renamed my text boxes (Originally Text1 and Text2 but now StartDate and EndDate) therefore this was the issue from the get go.

    Issue resolved

  3. #3
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: 424 - Object Required - Which one?

    Put
    Code:
    Option Explicit
    in the Declarations Section of your Form and run the code again. I suspect you'll find that either Text1 or Text2 doesn't exist

    EDIT:I see you got there before me !!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width