how to show an attachment in a form

mana

Registered User.
Local time
Today, 12:26
Joined
Nov 4, 2014
Messages
265
hello

i ahve a table with an attachment field in it
i want to show this attachment field in a form
this attachment is a picture (i want to have the exact picture in my form)
do you know how i can do this ?
thank you
 
Use the form wizard to create the form and it will use the appropriate control. It's called an Attachment control.
 
hello

yes i know this
but in this way it is like an attached file
i want to have the attachment (that is saved) as a picture
do you know how it is possible?
 
Change the Picture Size Mode property of the control to Zoom.
 
thank you
do you know how can i show each of rows of a datasheet in a pdf format?
 
I don't understand your question. Can you explain differently.

You want each record in separate pdf docs?
 
I mean how is it possible to make this form like a PDF file?
I mean how to send this form to a PDF file
Thank you
 
Not sure what you mean by send! By email, to folder on hard drive? What?
Anyway, here are 2 examples:
PHP:
DoCmd.OutputTo acOutputForm, "YourFormName", acFormatPDF, "C:\YourDir\OutputFile.PDF"

PHP:
'Print Single Record on Form.
Dim myForm As Form
Dim PageNo As Integer
 
PageNo = Me.CurrentRecord
Set myForm = Screen.ActiveForm
 
DoCmd.SelectObject acForm, myForm.Name, True
DoCmd.PrintOut acPages, PageNo , PageNo , , 1
DoCmd.SelectObject acForm, myForm.Name, False


HTH
 
helllo,

thank you very much
but is there a way to work with macro?
i mean to make the pdf file with macro?
 
Sorry, I rarely use Macros. As has been suggested, use the wizard to obtain your results.
Also search on here and Google it.
Good Luck!
 
* Create a report that's the same as the form
* Use the OutputTo command burrina mentioned to print the report to pdf. Don't print forms.
 

Users who are viewing this thread

Back
Top Bottom