Results 1 to 2 of 2

Thread: [RESOLVED] Old code throwing out random error

  1. #1

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Resolved [RESOLVED] Old code throwing out random error

    Hi there,

    I have an old access 2000 app that has been working for years. I have updated and modified it over that time but not recently - All of the sudden I went to use it and blamo! I get this error message

    Runtime error '424' - Object required.

    The code looks like this.

    Code:
    x = 2
    strSQL = "Select * from tblStudyNumbers"
    Set db = CurrentDb
    Set rs1 = db.OpenRecordset(strSQL)
    Set mybook = Workbooks.Open(Filename:="g:\prntshop\online\indextemplate.xls")
    I have office 2007 but I have had that for a while now. I am totally stumped, it breaks on the line Workbooks.Open, I checked that the file is there and that i can open it in Excel.

    I am stumped - anyone run into something like this before?

    Thanks!
    Anti DUPLO machine!!!

  2. #2

    Thread Starter
    Hyperactive Member r0k3t's Avatar
    Join Date
    Dec 2005
    Location
    Cleveland
    Posts
    361

    Re: Old code throwing out random error

    Never mind - I found it... Somehow the reference to Excel went bye bye!

    Hmmp... Weirdness.
    Anti DUPLO machine!!!

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