+ Reply to Thread
Results 1 to 7 of 7

Excel Userform to input Access Records

  1. #1
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Excel Userform to input Access Records

    Hi Guys,

    I am trying to create a userform in Excel, once the form is filled out, i want a button which will send the data through to an access database as a new record.

    I have seen this done before through VBA coding but I don't know how to get this working.

    The userform contains the following fields starting at cell D3 and continuing down to cell D17

    CustomerName
    Address1
    Address2
    Address3
    Address4
    Address5
    Postcode
    ContactName
    ContactNumberLandline
    ContactNumberMobile
    ContactEmail
    SiteContactName
    SiteContactLandline
    SiteContactMobile
    SiteContactEmail

    These fields all link to a Database located at: C:\Documents and Settings\User\Desktop\TESTDB.adp

    they are to be inserted into the table : Customer_Details

    I also have a cell on the userform for TextNote which is to be inserted into another Table but uses the Key Field Number from the Customer_Details table.

    I know that you probabilly need more information in order to help but If any of you can help or perhaps if you have a template code that can help me to achieve this i will be forever greatful.



    many thanks

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Re: Excel Userform to input Access Records

    This may help:

    Please Login or Register  to view this content.
    make sure you have the ref: DAO Object Library 3.6 enabled
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  3. #3
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Excel Userform to input Access Records

    thanks for your help macdave i get an error saying:

    runtime error "3343"

    Unrecognised Database format C:\Documents and Settings\User\Desktop\TESTDB.adp


    is this causing an issue because the database is in *.adp format?

  4. #4
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Re: Excel Userform to input Access Records

    it might be? not to familiar with the file type? is it a split access database with a back and front end?

    also have you made sure that the reference DAO 3.6 Object Library is enabled?

  5. #5
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Excel Userform to input Access Records

    Hi,

    yes the DAO 3.6 Object Library is enabled, I am not very familiar with Database setups, but i would assume it is a split system, the database itself is very locked down, it has no toolbar options when it is opened and users interact through userforms only.

  6. #6
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Re: Excel Userform to input Access Records

    Maybe it's worth speaking to the relevant parties who created it then.

    from what i can see it must be the .adp file extension that it's not regonising?

  7. #7
    Forum Contributor
    Join Date
    06-13-2008
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    277

    Re: Excel Userform to input Access Records

    thanks macdave,

    Ill see if i can track him down.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1