N
NDClark
Guys, I am having several issues here. Please be patient with me.
I have a form named : Evaluation Form
I have a report named : Evaluation
The table is named: Evaluation
What I am wanting to do is click the Print button on a form where I have
entered data and print a single record off of a report that is linked to the
data.
I have a button named 'Print1' on the form. I have tried the code several
different ways and come to different problems each time I change it.
---------------------------------------------------------------------------
"This will get me a dialog box asking for a parameter."
The code I added to the button is as follows:
Private Sub Print1_Click()
DoCmd.OpenReport "Evaluation", acPreview
Reports![Evaluation].Filter = "Officer = " & Me![Officer]
Reports![Evaluation].FilterOn = True
End Sub
______________________________________________________________
"This gets me an error in the debug of 'cant find the field 'ID' in the
expression."
I tried this code:
Private Sub Print1_Click()
DoCmd.OpenReport "Evaluation", acPreview
Reports![Evaluation].Filter = "ID = " & Me![ID]
Reports![Evaluation].FilterOn = True
End Sub
--------------------------------------------------------------------------------------
I have a form named : Evaluation Form
I have a report named : Evaluation
The table is named: Evaluation
What I am wanting to do is click the Print button on a form where I have
entered data and print a single record off of a report that is linked to the
data.
I have a button named 'Print1' on the form. I have tried the code several
different ways and come to different problems each time I change it.
---------------------------------------------------------------------------
"This will get me a dialog box asking for a parameter."
The code I added to the button is as follows:
Private Sub Print1_Click()
DoCmd.OpenReport "Evaluation", acPreview
Reports![Evaluation].Filter = "Officer = " & Me![Officer]
Reports![Evaluation].FilterOn = True
End Sub
______________________________________________________________
"This gets me an error in the debug of 'cant find the field 'ID' in the
expression."
I tried this code:
Private Sub Print1_Click()
DoCmd.OpenReport "Evaluation", acPreview
Reports![Evaluation].Filter = "ID = " & Me![ID]
Reports![Evaluation].FilterOn = True
End Sub
--------------------------------------------------------------------------------------