M
Marissa
I'm a little lost and need some help.
I have a group of forms that I intend to use to populate a form which will
eventually be emailed out. The first form asks the user for a number of
units. Then I need the user to fill out another form for each of those units.
So far I have:
Sub CommandButton1_Click()
Dim CompNum
'CompNum is the name of the text box where the user enters the number of units
For n = 0 To CompNum
compressordata1.Show
' show the next form
Next n
comp1.Hide
' hide the first form
End Sub
Then I have my other form which has a series of text boxes and combo boxes.
At the end there are three command boxes: back, next, and cancel. I don't
know what code to put in the next box to make it complete the cycle and then
close when the right number of forms has been filled in.
Thanks for your help.
I have a group of forms that I intend to use to populate a form which will
eventually be emailed out. The first form asks the user for a number of
units. Then I need the user to fill out another form for each of those units.
So far I have:
Sub CommandButton1_Click()
Dim CompNum
'CompNum is the name of the text box where the user enters the number of units
For n = 0 To CompNum
compressordata1.Show
' show the next form
Next n
comp1.Hide
' hide the first form
End Sub
Then I have my other form which has a series of text boxes and combo boxes.
At the end there are three command boxes: back, next, and cancel. I don't
know what code to put in the next box to make it complete the cycle and then
close when the right number of forms has been filled in.
Thanks for your help.