October 1st, 2004, 10:54 PM
#1
Multiple Forms
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
October 2nd, 2004, 11:39 AM
#2
Re: Multiple Forms
u mean the print "Message" command?
October 9th, 2004, 12:19 AM
#3
Re: Multiple Forms
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
Attached Files
October 9th, 2004, 01:12 AM
#4
Re: Multiple Forms
' 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
October 30th, 2004, 12:23 AM
#5
Re: Multiple Forms
can that b done some ways using loops
October 30th, 2004, 09:16 AM
#6
Re: Multiple Forms
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
November 1st, 2004, 08:51 PM
#7
Re: Multiple Forms
so in this case there will b nothing declared inthe module
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width