+ Reply to Thread
Results 1 to 4 of 4

Having trouble opening an access file using this code.

  1. #1
    Registered User
    Join Date
    02-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Having trouble opening an access file using this code.

    Using the following code
    Please Login or Register  to view this content.
    displays dialog box but the files i double click on do not open?

    thank you
    Last edited by royUK; 10-24-2009 at 07:28 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Having trouble opening an access file using this code.

    GetOpenFilename does not open the file, it just returns the full path of the selected file(s). You have to manually open the file in your code.

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    Re: Having trouble opening an access file using this code.

    Hi
    Are you running these codes from excel or access? Do you intend to import data from access to excel? try adding this code after getopenfilename
    Please Login or Register  to view this content.
    Ravi

  4. #4
    Registered User
    Join Date
    02-09-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Having trouble opening an access file using this code.

    Thank you for the replies

    After further investigation for what i wanted to do. I have found it much easier to use the Import spreadsheet procedure from the access database. This has solved my problem.
    Thks

    FYI

    For anyone concerned

    If you want to import to an existing table in ms access, make sure you have included the field names exactly as they are in your access table into the first row of your spreasheet. Also the formatting must match your access fields ae: Date and Time fields.
    Last edited by djbummy; 02-09-2009 at 01:26 PM.

+ 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