I
I.H.
Hi all,
I am working on a form that have some data.. the data I have are send to a
premade report. Practically I have alot of fields inside this form and
normally would fit in the page of the report, but I have to spread them on 2
pages. How can this be done? I have to make 2 sepparate forms to be able to
make two report pages?
==========================================
On the form I have a "print" button that takes me to the report page. The
code is something like this:
Private Sub btn_click_Click()
On Error GoTo Err_btn_click
Dim MyWhereCondition As String
MyWhereCondition = "xxx= " & Me.xxx
MyWhereCondition = "xx= " & Me.xx
DoCmd.OpenReport " reportnamehere", acPreview, , MyWhereCondition
Exit_btn_click:
Exit Sub
Err_btn_click:
MsgBox Err.Description
Resume Exit_btn_click
End Sub
=================================================
So when I pres the "print" button, I want somehow to be able to print the
data from the form that are spread on the two report pages.
Thanks in advance,
Best regards,
I.H.
I am working on a form that have some data.. the data I have are send to a
premade report. Practically I have alot of fields inside this form and
normally would fit in the page of the report, but I have to spread them on 2
pages. How can this be done? I have to make 2 sepparate forms to be able to
make two report pages?
==========================================
On the form I have a "print" button that takes me to the report page. The
code is something like this:
Private Sub btn_click_Click()
On Error GoTo Err_btn_click
Dim MyWhereCondition As String
MyWhereCondition = "xxx= " & Me.xxx
MyWhereCondition = "xx= " & Me.xx
DoCmd.OpenReport " reportnamehere", acPreview, , MyWhereCondition
Exit_btn_click:
Exit Sub
Err_btn_click:
MsgBox Err.Description
Resume Exit_btn_click
End Sub
=================================================
So when I pres the "print" button, I want somehow to be able to print the
data from the form that are spread on the two report pages.
Thanks in advance,
Best regards,
I.H.