Hyperlinks Truncating on Export from Access 2007

I have a report in Access 2007 that includes a memo field in RTF format.  Quite often part of the text in this field will include one or more hyperlinks.  The hyperlinks work fine in Access.
I export this report to .pdf using the following line of VBA code, attached to a button on a form:
DoCmd.OutputTo acOutputReport, stDocName, acFormatPDF, vrtSelectedItem & "\" & title & ".pdf"
This code works fine, and the report is exported to the selected location properly.  And if the hyperlink text all fits on one line in the .pdf file, then the link works correctly there, too.
The problem is when the hyperlink text ends up being wrapped around to a 2nd line or more.  The entire link still LOOKS like a link in the .pdf file (it's still blue/underlined), but only the first line is actually a hyperlink.
For example, if the link text were:
http://forums.adobe.com/community/
acrobat/post!input.jspa?containterType=14
...then the only part that would actually be a hyperlink in the .pdf document would be "http://forums.adobe.com/community/" and the 2nd line of the link is lost.
We have thousands of these hyperlinks all throughout our data, and many of them are more than one line long.  It is not feasible for us to shorten all of them using bit.ly.  Nor is it feasible for us to make our users copy and paste the broken links from the .pdf's into their browsers.
So, does anyone know how to fix this so that the hyperlinks we pass to .pdf from Access remain complete hyperlinks, even if they are more than one line long?

Finally figured out the solution myself, after 2 days.  It's surprisingly simple.
If the URL is surrounded by double quotes in the data, then it works as a complete link when exported to .pdf, even if the link wraps to a 2nd line or more.  The quotes show up in the .pdf, too, but that's a small price to pay to have working links.

Similar Messages

  • Problem calling Oracle function from Access 2007 / ADO

    Hopefully, I'm posting this in the correct forum. I'm also posting on an Access forum as I'm not entirely sure where the issue lies.
    I'm calling an Oracle function from Access 2007 using an ADO Command object.
    The function takes three input parameters and has a return value and an output parameter. The output parameter is a BLOB, and the return value is varchar2 (either "T" or "N") based on the outcome of the function.
    If I pass correct values to the function, I get the following error message (errs out on the command.execute line):
    Run-time error '-2147467259 (80004005)':
    [Oracle][ODBC][Ora]ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 1
    Here's the function:
    FUNCTION GET_ITEMREV_ATTACH(P_ORGANIZATION_ID IN NUMBER,
    P_INVENTORY_ITEM_ID IN NUMBER,
    P_REVISION IN VARCHAR2,
    X_DRAWING OUT BLOB) RETURN VARCHAR2 IS
    RESULT VARCHAR2(1);
    BEGIN
    RESULT := 'T';
    BEGIN
    SELECT L.FILE_DATA
    INTO X_DRAWING
    FROM FND_ATTACHED_DOCUMENTS AD,
    MTL_ITEM_REVISIONS_B IR,
    FND_DOCUMENTS_TL D,
    FND_LOBS L
    WHERE AD.ENTITY_NAME = 'MTL_ITEM_REVISIONS' AND
    AD.PK1_VALUE = IR.ORGANIZATION_ID AND
    AD.PK2_VALUE = IR.INVENTORY_ITEM_ID AND
    AD.PK3_VALUE = IR.REVISION_ID AND
    AD.CATEGORY_ID = 1001216 AND
    D.DOCUMENT_ID = AD.DOCUMENT_ID AND
    D.LANGUAGE = 'US' AND
    L.FILE_ID = D.MEDIA_ID AND
    IR.ORGANIZATION_ID = P_ORGANIZATION_ID AND
    IR.INVENTORY_ITEM_ID = P_INVENTORY_ITEM_ID AND
    IR.REVISION = P_REVISION;
    EXCEPTION
    WHEN OTHERS THEN
    RESULT := 'N';
    END;
    RETURN(RESULT);
    END GET_ITEMREV_ATTACH;
    Here's the VB code I'm using to call the function:
    Private Sub Command8_Click()
    Dim CMD As New ADODB.Command
    Dim conn As ADODB.Connection
    Dim Param1 As ADODB.Parameter
    Dim Param2 As ADODB.Parameter
    Dim Param3 As ADODB.Parameter
    Dim ParamBlob As ADODB.Parameter
    Dim ParamReturn As ADODB.Parameter
    Set conn = New ADODB.Connection
    With conn
    .ConnectionString = "Driver={Oracle in OraHome92};Dbq=OAPLY;UID=***;PWD=*******"
    .CursorLocation = adUseClient
    .Open
    End With
    Set CMD = New ADODB.Command
    Set CMD.ActiveConnection = conn
    CMD.CommandText = "immi_attach_pub.get_itemrev_attach"
    CMD.CommandType = adCmdStoredProc
    Set ParamReturn = CMD.CreateParameter("RESULT", adVarChar, adParamReturnValue, 1)
    CMD.Parameters.Append ParamReturn
    Set Param1 = CMD.CreateParameter("P_ORGANIZATION_ID", adInteger, adParamInput, 1, 6)
    CMD.Parameters.Append Param1
    Set Param2 = CMD.CreateParameter("P_INVENTORY_ITEM_ID", adInteger, adParamInput, 4, 5207)
    CMD.Parameters.Append Param2
    Set Param3 = CMD.CreateParameter("P_REVISION", adVarChar, adParamInput, 2, "04")
    CMD.Parameters.Append Param3
    Set ParamBlob = CMD.CreateParameter("X_DRAWING", adLongVarBinary, adParamOutput, 200000)
    CMD.Parameters.Append ParamBlob
    CMD.Execute , , adExecuteNoRecords *** this is where the error occurs
    conn.Close
    MsgBox CMD.Parameters("RESULT")
    End Sub
    I've tried using different data types for the varchar2 parameters (adVarChar, adBSTR, adChar) with no difference.
    If I pass a bogus value for Param3...."'04'"...the function returns "N" indicating that it actually executed something. But, when I pass the correct value "04", it returns the above mentioned error.
    I can execute the function in PL/SQL just fine, so I'm thinking there's something wrong with the parameters, datatype, or other definitions on the Access side.
    Does anyone have any thoughts? I'm at a dead end with this. Sorry for the long post. Thank you.

    I tried your code with 11107 ODBC/client/database (but with a NULL output blob for convenience sake) and got no errors.
    If you're using 92 ODBC/client, you may want to try upgrading to something more current, or at least getting the latest patch(9208) to see if that helps. Since it works for me I'm guessing it may be a resolved bug in that version.
    Hope it helps,
    Greg

  • Error establishing ODBC connection to Oracle database from Access 2007

    I am trying to access via linked tables from Access 2007 my ODBC connections.
    I am able to setup and test successfully in the ODBC Data Source Administrator my Data source, and Driver(Oracle in OraHome92), and I used this successfully when I had Access 2003 on this PC.
    system details: Oracle 9i, MS Access 2007 on Windows XP
    error - call failed:
    detailed error from sqlnet.log:
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE)(HOST=USRN4WNCNH6DDQG)(USER=fznp29))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
    Time: 05-DEC-2008 11:38:05
    Tracing not turned on.
    Tns error struct:
    nr err code: 0
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    nt secondary err code: 126
    nt OS err code: 0
    Any ideas?

    Hi,
    Please can you specify how you create your DSN for Oracle connection in ODBC Data Source Administrator?
    What did you specify for the TNS Service Name?
    What is the content of your TNSNAMES.ORA file?
    Thx
    Mireille

  • Migrating tables from Access 2007 to an Oracle schema

    Hi,
    I want to migrate some tables(with data) from a remote Access 2007 database to an Oracle schema using Oracle SQL developer version 2.1.1.
    Could someone help me with the list of steps that need to be performed for this migration??

    Having the .MDB file is not sufficient. You will need to Capture the Access database first. To do so, install SQL Developer on the machine where the Access Database (and Access software) resides.
    From the "Tools / Migration / Microsoft Access Exporter" menu, choose to run the exporter corresponding to your version. Once done, transfer the XML generated
    file to the machine you usually run the migration.
    A tutorial named "Migrating a Microsoft Access Database to Oracle Database 11g" is available at http://st-curriculum.oracle.com/obe/db/hol08/sqldev_migration/msaccess/migrate_microsoft_access_otn.htm
    Continue your migration starting from the step "Capturing the Microsoft Access Exported XML"
    Cheers,
    Jean-Patrick

  • Import/Export from Access MDB to Oracle DB

    Dear Friends,
    I need to import a huge table from access to Oracle. I tried to export the file from MS Access to Oracle, it is giving error. I tried another way of doing , i first exported the data to SQL server and then using Export/Import utility of SQL Server, it has imported succesfully. I am not sure which is the best way to import data from ACCESS to Oracle.
    Kindly suggest,
    Regards,
    Vinay

    Another approach you might try goes something like this:
    1. In Access, link the destination Oracle table (for example, via File, Get External Data, Link Tables...).
    2. In Access, create an Append Query to select rows from your Access table and insert them in to the linked Oracle table.

  • Exporting from Access / Importing to Oracle9i

    Hi
    I am trying to figure out a way of exporting an Access database to 9i. This is fine if I am just exporting text, I then use Access as the fromt end to Oracle. However I would like to export a database which hold OLE objects (i.e Word docs, and Excel sheets) into 9i and agin connect to it via ODBC with linked tables. Is this possible??? Does anyone know how to, or where I could find info on how to, I would be grateful.
    Thanks very much and have a good weekend
    John

    I think it's unlikely that this is possible. The ODBC protocol doesn't generally support the sending of LONG/ BLOB/ CLOB data, so Access is unlikely to know how to do this. Oracle's ODBC driver does provide support for these datatypes, but it is relatively unique in this regard.
    Justin

  • After running Export from Access query the query empties itself

    Hello,
    I'm facing a weird problem in Access 2010. I have several queries that I sometimes export to both Excel and HTML formats, sometimes when I export, the query empties itself. Meaning, the SQL code disappears from the query and I have to rebuild it before I
    can use it again.
    Does anyone understand how this can happen?
    Kind regards,
    Rob Demandt

    Dear Kev,
    Sure, the queries are relatively simple, an example:
    "SELECT AC_DEV_01_AUTOPO_NOSOURCE_US50.F1 AS Material, AC_DEV_01_AUTOPO_NOSOURCE_US50.EersteVanF2 AS [Material Description], AC_DEV_01_AUTOPO_NOSOURCE_US50.EersteVanF6 AS Vendor
    FROM AC_DEV_01_AUTOPO_NOSOURCE_US50
    WHERE (((AC_DEV_01_AUTOPO_NOSOURCE_US50.EersteVanOpProc)="PJ"));"
    The export is indeed invoked using a MACRO that uses the ExportWithFormatting syntax to export a few queries in a row to XLSX and HTML.
    Kind regards,
    Rob Demandt

  • Hyperlinks Transfer to PDF From Publisher 2007??

    My hyperlinks in Publisher 2007 are not transferring to PDF.  I  have done a video to better explain it: http://www.youtube.com/watch?v=4lsB0Pv_XCs.
    Thank  you for any help you can give.

    Acrobat 9's PDFMaker supports creating links when you convert Publisher 2007 to PDF.
    However, the "create link" option must be selected in PDFMaker's Configuration settings.
    n.b,. For any Office 2007 application, Acrobat 8.1 or better is required.
    Earlier releases do not support Office 2007.
    Check you CS4 install. If needed, do the step updates of dot releases to get to the current dot release.
    More specifically, for links "on"/"over" an image.
    You need to assure that when you use Hyperlink in an Office application the link fully spans the image.
    You'd want it to start somewhat to the left of the image and end somewhat to the right of the image.
    (if that makes any sense  )
    Else, in the PDF page content, the link can be "under" the image and not usable.
    Be well...

  • Exporting from Access to Oracle

    Hi all,
    nowadays we are dealing with an issue of exporting access tables to oracle 11g.Briefly, the problem is our former developers had defined columnnames with space characters in access tables,as you know they are not valid in oracle db.After spending hours on internet we found out that we can export tables to oracle with the same column names if we put a quotation mark (") just before and after the column name which means a column named [Customer Name] in access is gonna be changed to "Customer Name".It looks okey but still looks like an amateur ,daily solution.Dou you know any other solution for our problem and also is the putting quotation marks(") a supported solution for oracle's side.
    Thank You
    gokhan

    Hi,
    You can make use of Oracle sql Developer for exporting Access tables or database to Oracle. ORacle sql developer will capture the Access model and then convert it into the Oracle required format. Then using that model you can perform Import in the ORacle Sql Developer.
    Regards

  • How to export a table of data from MS Access 2007 to Oracle 11g

    I have been looking all over trying to find a way to get a table from Access 2007 to Oracle 11g. I tried using the export options in Access but can't get them setup correctly I guess. What are the steps to setting this up correctly or is there another way to export the data?

    MS Access 2007 DB migration To oracle 10g

  • Std 9.0 + Access 2007 + network connection, PDFMaker not working anymore

    Hello,
    when i try to create a PDF file from an Access report, it isn't working anymore when i have a network connection. It worked for months, but yesterday Access 2007 crashed and it asked to deactivate the COM Add-In from PDFMaker and my Co-Worker clicked on yes while i was absent. So even after reactivating the Add-In and reinstalling the whole Acrobat Standard, i can't create any PDFs anymore from Access 2007 while i have a active network connection. When i plug off my network cable, it's working, as soon as i plugin the network cable again, it's not working anymore. And it only happens in Access 2007, PDFMaker in Word, Excel etc is still working fine.
    Anyone got some ideas or solutions?
    Best regards
    Chris

    Can you create a PDF by printing to the printer? It sounds like you may simply need to do a repair to Acrobat.

  • Code to run a query in SQL from Access with pass through query

    I have a query in SQL Server 2008:
     [Auto Null Up Date].sql. I want to run this query from Access 2007 using a Pass Through Query. What is the command/code to run this query from Access? I have used Pass Through Queries but never in this capacity so I am somewhat lost. I have
    already established the OBDC link and tested.

    Naomi,
    Here are a few lines of the SQLCMD code in the [Auto Null Update].sql query:
    USE [Archive Master]
    Go
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null BackPress 2 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 3 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 4 update.sql"
    When this code is pasted into a Create Procedure, (the USE [Archive Master] is not used), the procedure will run, but once saved here is what is left of the procedure once I attempt to modify:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:                         
    <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description:              
    <Description,,>
    -- =============================================
    Create PROCEDURE [dbo].[NullTest2]
    AS

  • Want to export user settings from Office 2007 on client, to be able to import in Office 2013?

    Upgrading from Office 2007 to Office 2013. We may need to save the user settings on the client computer, because we are moving some of the systems from 32-bit to 64-bit. How can we export the settings to a folder?

    Hi,
    Could you please tell us what is included in user setting? Such as the customized Quick Access Toolbar settings, customize ribbon settings, or profile in Outlook?
    Generally, we can’t upgrade operating system from 32-bit to 64-bit directly, we need to reinstall 64-bit operating system.
    Office 2007 don’t provide the Import/Export button like Office 2010/Office 2013, we can’t export QAT setting and customize ribbon setting directly.
    To customize an installation of Office 2013, you can use the Office Customization Tool (OCT) to perform tasks such as the following:
    Specifying installation options
    Customizing how Office applications and features are installed
    Configuring default user settings
    Managing additional content: add or remove files, registry entries or shortcuts
    Configuring Outlook options: setting the default profile, adding email accounts, and specifying Exchange      settings
    For more detail information:
    http://technet.microsoft.com/en-us/library/cc179097(v=office.15).aspx
    Regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Can only access emails through OWA after migration from exchange 2007 to 2013

    can only access emails through OWA after migration from exchange 2007 to 2013, in other words unable to access mails through outlook or from other Applications services.
    needed RCA ... plz help..

    Hi,
    From your description, you can send and receive messages only when you use OWA after migration from Exchange 2007 to Exchange 2013. If I have misunderstood your concern, please let me know.
    In your case, I recommend you create a new test mailbox in your Exchange 2013 and check if you can send and receive messages on Outlook. If yes, it is recommended to create a new profile to solve this issue.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Using Powershell Script Run simple query in MS Access 2007 and export the results of query to Excel

    Hi Experts,
    I have a Access 2007 DB file and 2 Big tables inside that (bigger than the size that can be easily handled by MS Excel 2007).
    My requirement is automate using powershell scripts the below things.
    1. Create a SQL query in Access DB and save that in access DB
    2. Run the saved query and export the result in excel sheet where I can create the charts and Pivots. Thanks in advance
    Prajesh

    Do you have to use the Access query, couldn't you just recreate the query in Powershell?  Here's a link with good info that references an existing script for querying an Access database:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/13/hey-scripting-guy-can-i-query-a-microsoft-access-database-with-a-windows-powershell-script.aspx
    Once you have your dataset you can pipe it to
    Export-Csv -NoType c:\pathtofile\output.csv

Maybe you are looking for

  • While Idoc to File  XI processing : data format change

    Hi All, need help. I am processing  idoc to file in a sscenario. Here we have one  field in  Idoc is "Miscdata"   Where we are passing one String with multiple spaces" While this String goes to XI it remove the multiple space and make single space. I

  • Filter Question part II

    Hi, do you remember my previous post? Well, now I've a similar requirement, but again I haven't a solution. i've following question: I've a prompt with two choices: "All" and "WITHOUT ICO" wich fill a presentation variable 'ICO'. Then i've a report t

  • Cannot produce the target fields as per Queue

    Hi I have given a condition such that 8 nodes are generated after mapping now inside node, one of the field is not getting populated . The queue is shown below : SUPPRESS one Two Three Four SUPPRESS SUPPRESS Five Six Seven SUPPRESS Eight SUPPRESS Que

  • Macbook pro late 2013 poor battery life

    I bought my 2.3 Ghz 16 Ram Late 2013 Retina Macbook pro about a week ag, i've been using the computer normally,web browsing watching movies... and I never get more than 3 and a half hours of battery life from it. Is there a problem with a series of t

  • Writing customized error handlers

    Hi I am trying out the exception handler example of Duncan Mein's at http://djmein.blogspot.com/2007/04/custom-error-handling-in-apex.html. In the example he talks about writing an Exception Handlers. where is this done in apex regards Tony