Results 1 to 20 of 21

Thread: Solved: Add data to a closed workbook

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #20
    VBAX Tutor phendrena's Avatar
    Joined
    Oct 2008
    Location
    Huddersfield, UK
    Posts
    285
    Location
    Hi Kenneth,

    Many thanks for the detailed advice, i have a question...

    Quote Originally Posted by Kenneth Hobs
    The first step is to click the Tools menu in the VBE and set the reference to Microsoft ActiveX Data Objects 2.8 Library. This is the ADO reference.
    The version of this that i can see with excel '97 etc is 2.7, is this going to make a massive difference to the above code as i've tried using it, and nothing gets passed to Access (directly copied and pasted - although i have changed the field names in the vba and also the database to include '_' and removed the '?').

    Thanks,

    EDIT : It did copy the data, when i originally created the database it included a lot of blank rows that i didn't delete, so i forgot to look at the end of the database....
    Last edited by phendrena; 12-03-2008 at 03:43 AM. Reason: idiot error
    Somewhere in the dark and nasty regions where nobody goes, stands an ancient castle.
    Deep within this dank and uninviting place lives Berk, overworked servant of The Thing Upstairs.
    But thats nothing compared to the horrors that lurk beneath The Trap Door.

Posting Permissions

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