Results 1 to 3 of 3
  1. #1
    CCW8 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    8

    Hyperlink w/Variable Any help is appreciated

    Please, Any help is appreciatedThank You


    I tried using code builder from the cmd button and I am getting an
    error 13
    Type Mismatch
    in debug I get (hi-lighted)
    Set cmdPEBFile = PEBNumberTextBox
    here is my code:
    Private Sub cmdPEBFile_Click()
    Dim cmdPEBFile As CommandButton
    Set cmdPEBFile = PEBNumberTextBox
    With cmdPEBFile
    .Visible = True
    .HyperlinkAddress = "\\ServerName\ServerDrive\Databases\EPEB\" & [PEBNumberTextBox] & ".pdf"
    End With
    End Sub

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    ummm.....cmdPEBFile is dimmed as a BUTTON. and you're setting it to a TEXTBOX control? What did you think was going to happen, bud? =)

  3. #3
    CCW8 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    8
    I thought it would somehow relate the command button to the data in the text box so it could be added to the hyperlink string as the actual file name. I was given this from an example of someone else work in another database. This was how they made it work for them but they have been unable to explain why it will not work for me.

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

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2011, 03:19 PM
  2. Help is much Appreciated
    By Kookai in forum Database Design
    Replies: 1
    Last Post: 08-16-2010, 04:50 AM
  3. Refering to variable form names inside a variable
    By redpetfran in forum Programming
    Replies: 2
    Last Post: 05-21-2010, 01:39 PM
  4. Form Variable in Hyperlink
    By russ0670 in forum Forms
    Replies: 5
    Last Post: 01-15-2010, 08:09 AM
  5. Replies: 4
    Last Post: 08-30-2009, 12:31 PM

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