The closest thing I've been able to find is a dll called iTextSharp, which
apparently was created specifically to work with pdf documents, including
autofilling pdf form fields. The caveat: it works for about every language
except VBA. Oh, there was a post regarding using it in VBA on Experts
Exchange, but I'm not willing to pay money to see their answers.
I even went through Lebans ReportToPDF module to see if he might have
something... no luck.
If you google iTextSharp.dll you'll find plenty of info for Java, ASP, .NET,
C# etc. Maybe you can make something of it work for VBA.
There are a few applications that you can purchase at upwards of $100 to do
this as well.
good luck! I'd be very curious to see if there is free solution available
for VBA.
--
Jack Leach
www.tristatemachine.com
"I haven't failed, I've found ten thousand ways that don't work."
-Thomas Edison (1847-1931)
"CAM" wrote:
> I'm using Access 2007. On a form, I have a button with VBA code to send an
> email. It autopopulates the TO, FROM, SUBJECT, and BODY of an Outlook email
> from fields on the form, and it also attaches a PDF file.
>
> My question is: How can I autopopulate the fillable PDF form with some of
> the fields from the Access Form BEFORE it attaches the PDF form to the
> email--without having to manually do it first before clicking the "Send
> Email" button on the form?