IS it possible to print data from one form on to the next form...i mean printing on the form itself rather than using labels
Printable View
IS it possible to print data from one form on to the next form...i mean printing on the form itself rather than using labels
u mean the print "Message" command?
no i meant actually printin the data on the next form... i tried to print it on labels but i guess i made mistake somewhere
so please hava look at the code n say soemthing
' In a module
Public DataToPrint as String
'In Form1
Public Command1_Click()
DataToPrint = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
Load Form2
End sub
'In Form2
Private Sub Form_ACTIVATE()
Print DataToPrint
End Sub
can that b done some ways using loops
create a property on form2:
Public Property Let PrintStatement(ByVal strValue As String)
Print strValue
End Property
on form1 do:
Private Sub Command1_Click()
Dim x As Integer
Form2.Show
For x = 1 To 10
Form2.PrintStatement = "Data " & x
Next
End Sub
Form2 has to be showing before printing to it.
Wayne
so in this case there will b nothing declared inthe module