Results 1 to 2 of 2
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,371

    Access To Excel Link To File

    Hi Guy's is there a way i can add a link to an excel cell and call each cell within the recordset range ie: if there is 43 items to output, the first 2 rows are header there for cells 3 to 46 (43 records) and have this a link to a file based on 2 of the data from other cells?

    The file names are all named by a date formated 00-00-00 Dealer Name.pdf each dealer name has their specific folder so the path would be ie:

    T:\MyCustomer\PDF\POD's\

    The Date and Dealer Name are already on the output as follows

    All of the strings and all is set and works so rather than add loads of code:

    I could do with the recordset adjusting to link to a file based on cell(3 ,3) DeliveryDate and Cell (3 ,4) Dealer Name file is called 19-01-19 Joe Bloggs

    Click View POD and it opens that file name ??

    Current rs

    Set rs6 = CurrentDb.OpenRecordset("SELECTtblAssign.DeliveryD ate, tblAssign.DelTo, tblAssign.Town, tblAssign.SONumber,tblAssign.PONumber, tblAssign.LiftType, tblAssign.LiftNo, tblAssign.Status FROMtblAssign WHERE Customer = '" & Cust & "'" & "And Source = '" & Src & "'" & " ORDER BYDeliveryDate DESC")

    .Worksheets(6).Cells(3, 3).CopyFromRecordset rs6



    Ideal result

    Click image for larger version. 

Name:	Capture.JPG 
Views:	12 
Size:	28.3 KB 
ID:	39258

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    not clear if you are reading excel from access or access from excel. If the former you can use a query

    per another thread I've just responded to https://www.accessforums.net/showthread.php?t=77811

    shame you are not consistent with date formats so you would have to convert 'Jan' to '01'

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

Similar Threads

  1. Replies: 1
    Last Post: 04-27-2018, 06:53 AM
  2. Universal path for DB link to excel file
    By subhankararies in forum Access
    Replies: 1
    Last Post: 06-24-2015, 08:19 PM
  3. Link Excel file to MS Access and generate rep
    By Priceless in forum Import/Export Data
    Replies: 14
    Last Post: 02-21-2011, 02:08 PM
  4. Access link to excel file
    By delkath in forum Access
    Replies: 3
    Last Post: 09-13-2010, 12:28 PM
  5. Link from access forms to Excel file
    By aligahk06 in forum Forms
    Replies: 1
    Last Post: 04-30-2010, 04:24 AM

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