Results 1 to 2 of 2
  1. #1
    kirky is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    43

    SavePDFDemo not by Pk field but text field

    I found this dbase demo in saving and opening pdf file. It works fine but it refers to the Primary key with an auto number what i want is using the text field (RecordTitle) show in the demo

    Please help me if somebody knows how to change it.

    Thank you and have a nice day!
    Attached Files Attached Files

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    you need to change intID to recordtitle where required (anything to do with building the filename - for example change this line in the btnPDFOpen_Click event

    strFileName = strDir & intID & ".PDF"

    to

    strFileName = strDir & me.recordtitle & ".PDF"

    I don't know what the code in the LinkFileCode module does - it's not documented, but you may need to change something there as well for example this line in FindSavePDFFile function

    SaveFileName = strDir & intID & ".pdf"

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

Similar Threads

  1. Replies: 6
    Last Post: 06-26-2015, 08:55 PM
  2. Replies: 3
    Last Post: 05-31-2014, 11:37 AM
  3. Replies: 5
    Last Post: 06-19-2012, 10:46 AM
  4. Replies: 12
    Last Post: 06-04-2012, 10:55 AM
  5. Replies: 2
    Last Post: 05-05-2010, 02:52 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