-
Hey, how's it goin'?
Well, I'm writing a receipt program for the ISP I work for, and what I'm trying to do is this:
When a customer comes in and pays, we enter in their name, username, how much they paid, and by what method they paid by, ie cash, check, etc.
So, when I click on 'Print receipt', it sends the information we typed in to another form, and prints out. I want to also make a report to show a list of the people who came in on a third form. The 'Print receipt' button sends the data to the third form...
----
I need to know how to go about doing this... I have created the form, and the list is to be in a frame. I'm not quite sure how to make it put in the customer's name, username, payment amt, and method... I was thinking about using labels, because they print out cleanly on the printer.
Could someone please help me out? To clarify, I need the 'Print receipt' command button to send the information to a third form, which will give a list of all the above information in columns by type.
Thanks
-BLiNDPiG :p
-
Just put Properties on your form.
into your form code put
Code:
Public Property Let RecietHeader(Data as string)
'If you want to make sure the string is in the right format
'Put whatever code you need here.
lblHeader.Caption=Data
End Property
Public Property Get RecietHeader as string
RecietHeader=lblHeader.Caption
End Property
Then you can put frmReciet. RecietHeader="Charge Fred Smith"
to set the label caption in theat form. Add a Print method to it too to print it off.