H
hoachen
Version 2003
I created a print button on the form to print a report whenever after the
neccessary infomation is entered. WHen i click on print I would need to set
it preview and then every single time enter a new data and print it. I have
to select the printer->color to grayscale, if i am not select the "grayscale"
i will some kind of unreadable text. I also can print direct from the
File->printer->print. Because if i do that, the form is actually is bigger
than A4 size paper.
Below is the code for the event proceduce that i currently have. If someone
can point me where is the problem it will be very appreciated.
Private Sub Label251_Click()
Dim oid As Integer
oid = OrderID
DoCmd.GoToRecord , , acNewRec
DoCmd.OpenReport "rptOrderMEmo", acViewPreview, , "orderid = " & oid
End Sub
I created a print button on the form to print a report whenever after the
neccessary infomation is entered. WHen i click on print I would need to set
it preview and then every single time enter a new data and print it. I have
to select the printer->color to grayscale, if i am not select the "grayscale"
i will some kind of unreadable text. I also can print direct from the
File->printer->print. Because if i do that, the form is actually is bigger
than A4 size paper.
Below is the code for the event proceduce that i currently have. If someone
can point me where is the problem it will be very appreciated.
Private Sub Label251_Click()
Dim oid As Integer
oid = OrderID
DoCmd.GoToRecord , , acNewRec
DoCmd.OpenReport "rptOrderMEmo", acViewPreview, , "orderid = " & oid
End Sub