Results 1 to 5 of 5

Thread: [Resolved] Hyperlinking in Access

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    66

    [Resolved] Hyperlinking in Access

    All I want to do is create a hyperlink field and update that field with links to files via code. Creating the field is no problem...updating it is.

    Thru code I update each record with a file based hyperlink....strictly via assigning the string path. However, the hyperlink in the table is 'dead'...I expected this.

    Searching thru the archives, I see references to using AppendChunk method to initiate the link. However my ADO or DAO recordset does not support that method.

    I am missing something here? Any suggestions on how to update the record with the hyperlink?

    Thanks,
    ww
    Last edited by whiteWay; Dec 29th, 2005 at 12:52 PM. Reason: Resolved

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Hyperlinking in Access

    The "hyperlink" is nothing more than a string, stored in a text field, that, when retrieved, becames a path to a file? Is this correct?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    66

    Re: Hyperlinking in Access

    No...the field data type is hyperlink. I attempted to assign a string for a particular record and the string does show as a hyperlink in the table. But when you click on the hyperlink nothing happens.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    66

    Re: Hyperlinking in Access

    I got it. You can update a hyperlink field data type with just a string. You need to include the # symbol!

    VB Code:
    1. Do While Not rst.EOF
    2.         rst.Edit
    3.         'INCORRECT: rst![thelink] = "K:\HOME\rob\ylds\" & rst![StratumLink] & ".xls"
    4.         rst![thelink] = "#K:\HOME\rob\ylds\" & rst![StratumLink] & ".xls#"
    5.         rst.Update
    6.         rst.MoveNext
    7.     Loop

    ww

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [Resolved] Hyperlinking in Access

    Actually, I just found an MSDN link that pretty much states exactly what you just discovered.

    Glad you got it figured out.

Posting Permissions

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



Click Here to Expand Forum to Full Width