In Visual basic you do not need to close one form when another opens. Moreover every loaded form is effectively a global class which can be accessed by other parts of the program.

For example:

'in frmMain
private Sub CommandChild_Click()
frmChild.Show vbModal
End Sub

'in frmChild
private Sub Form_Load()

If frmMain.lstValues.Text = "Customer" then
'\\ customer was selected from listbox
else
'\\ something other than customer was selected
End If
End Sub





hth,
D.

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com