
Simple Newbie Print Problem
Say I have simple code that computes the square and cube of the
numbers 1 to 5, and that prints (to screen) each number together with
its square and cube. This works fine as:
Private Sub Command1_Click()
For n = 1 To 5
s = n ^ 2
c = n ^ 3
print n, s, c
Next n
End Sub
But, when I try to print out the results using form1.printform, n, s
and c do not appear in the printed output, only the command buttons
themselves.
What is the easiest way to get this simple data that appears fine on
the screen, to the printer? Must I resort to a database/table for such
a simple output? The controls I know about will only accept a single
item per line not e.g. n,s and c.
What am I missing? Help!
Dennis