Hi folks. I am new to Vb but with your help i have been learning a lot. I have another problem. I have a project (DAO)with multiple forms. The first form has a list box (which is populated on the form load procedure from MS Access database) from which you choose a country. Their are 5 countries. The selected country brings up a second form for the relevant country (there is a different form for each country). On the country form (lets call it France) are labels which on loading should be populated with the info from the Access database, eg. capital,population. I know how to populate the combo box and then get it to display in the label on one form but i dont know how to do that on two or more form. Your help would be much appreciated.Please explain in simple terms and with syntax if possible. Which form do i put the code and under which event? Thanks.
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("C:\My Documents\Main Travel .mdb"
Set rs = db.OpenRecordset("select Country from Countries"
List1.Clear
If rs.RecordCount <> 0 Then
Do While Not rs.EOF
List1.AddItem rs("Country"
rs.MoveNext
Loop
End If
db.Close
'rs.Close
Set db = Nothing
Set rs = Nothing
End Sub