Results 1 to 6 of 6
  1. #1
    ronb is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    4

    How to change embedded file name

    I know nothing about Access, but have an issue a church with an .mdb file someone previously created.

    A Excel file( .xls ) is created by another program and that file's absolute location is embedded in an .mdb file. The data from the Excel file is used to generate attendance sheets using the .mdb file and a "trial" version of Access. The software that creates the Excel file was upgraded and the new software is in a different location that previously. The report that creates the Excel file works in the new location, but the location where the file is saved is under the new software's directory.

    I would like to modify the location of the Excel file that is in the .mdb file to point to the new location.



    How do I do this?

    It appears that the computer this .mdb file is on only has a "trial" version of Access. However, I can use Access on another machine to modify the file location in the .mdb file if necessary. BTW this is running on Windows XP. Other machine with Access is running Windows 7.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    Depends where the Excel file pathing is embedded. If it is a VBA procedure, do a search in the VBA editor for .xls.

    If it is stored in a table and code queries the table for the path, change the string in the table.

    If the path is in a macro somewhere, good luck finding it. I don't use macros and don't think can do a search of macro code with the Access Find/Replace tool.

    You can get third party add-in software that can search VBA and macro code (as well as expressions in queries, forms, reports and properties of objects and controls). I use Rick Fisher's Access Find and Replace. Cost about $50 (does NOT search data in tables).
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ronb is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    4
    Thanks for the reply June7! But, I'm still having a little trouble wrapping my head around how all you mentioned fits together. Additional comments are appreciated.

    When I double click on the attendancereport.mdb file Access( trial version ) opens.

    On the left side of the screen is a list of what appears to be items from the .mdb file.

    One of those items is labeled qmf_tmp.

    When I mouse over this item a popup appears showing the path to this object.

    So I have been assuming this path is embedded in the .mdb file somewhere and that is what I want to change.

    Does this additional explanation help identify where the path to this item may be located in the .mdb file and how I can go about changing it? Or is your answer still the same?

    Thx in advance.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    Is that item a table with a little arrow icon at the left? That signifies a linked table. This mdb is linking to data tables in another file, perhaps another mdb. This is a split design. What is the full path and filename showing in the popup?

    Can use the Linked Table Manager on the Database Tools tab to modify the links.

    It is possible for Access to link to Excel spreadsheets but I am not clear if that is what your project is doing. If you want to provide db for analysis, follow instructions at bottom of my post.

    Sounds like you could benefit from some basic introductory tutorials. Get a good beginner's reference and spend a day working through exercises.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ronb is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    4
    Yes, this item has a small arrow next to it pointing to the right. The icon for the file is the Excel spreadsheet icon.
    Path = C:\PowerChurch\PowerChurch9\qmf_tmp.xls

    Tutorials is a good suggestion, but I'm hoping this is the only time I'll have to deal with Access.

    Thanks

  6. #6
    ronb is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2012
    Posts
    4
    Thanks June7

    I was able to use Access 2010 tonight and load the .mdb file. Then I was able to find the linked table manager.

    No time to fix the file name tonight, but I will be able to tomorrow.

    I can't tell you how happy I am with the help you have provided me.

    Ron

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Embedded macro
    By thart21 in forum Forms
    Replies: 1
    Last Post: 06-28-2011, 12:18 PM
  2. Attachment file location change
    By gary742 in forum Access
    Replies: 3
    Last Post: 03-22-2011, 12:26 PM
  3. Run a Embedded Macro from VBA Code
    By sabre1 in forum Programming
    Replies: 3
    Last Post: 02-25-2011, 10:26 AM
  4. Run Embedded Macro
    By smikkelsen in forum Forms
    Replies: 0
    Last Post: 07-07-2010, 09:44 PM
  5. Replies: 2
    Last Post: 01-14-2008, 12:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums