ok i have 3 forms...a frmStartup, frmNewCharter, and frmAbout.
theres a menu on frmStartup called mnuFilePrintYachtTypes. what it is suposed to do is to print the list of yachts in the "Yacht Type" list box on my frmNewCharter. check the code out...
am i right...will thsi work ?VB Code:
Private Sub mnuFilePrintYachtType_Click() 'Print the contents of yacht type combobox. Dim intIndex As Integer Dim intFinalValue As Integer intFinalValue = frm.NewCharter.cboYachtType.ListCount - 1 For intIndex = 0 To intFinalValue Printer.Print frm.NewCharter.cboYachtType.List(intIndex) Next intIndex Printer.EndDoc End Sub
it sure does, thanks for ur help !!




Reply With Quote