alright, this maybe be lengthy to explain, but i will give it a shot. i have a form, where the user can enter how many stations are needed, and in turn, then hits the next button, and a new form loads, and depending on how many stations the user entered previously, that is how many text boxes are enabled.

before, when the user hit the next button, i unloaded the form. but i also have back buttons. so recently, i discovered that, if you don't unload the form, and just do a form.hide, the data entered is still there. so when you hit the back button, i hide the second form.

the problem is, if the user enters more stations, the text boxes in the next form are all the same as the first input.

the code in the next button is the following

VB Code:
  1. Headway = Text1
  2. Stations = Text2
  3. DailyBoardings = Text3
  4. VolumeConstant = Text4
  5. frmHeadway.Hide
  6. DoEvents
  7. Load frmTravelTimes
  8. frmTravelTimes.Show vbModal

why doesn't it update the second form? i name stations = text2, and upon line load traveltimes has the following code
VB Code:
  1. Private Sub Form_Load()
  2.  
  3.       'Initialize TextBoxes and Labels
  4. 10    For s = 0 To 6
  5. 20        Text1(s).Enabled = False
  6. 30        Label1(s).Enabled = False
  7. 40    Next
  8.  
  9. 50    For s = 0 To (Stations - 2)
  10. 60        Text1(s).Enabled = True
  11. 70        Label1(s).Enabled = True
  12. 80    Next
  13.  
  14. End Sub

does it skip over the load if it is already loaded? do u need to do an unload for it to update a form. i hope i explained this well enough. there maybe a simple answer.

thanks

jeff