G
Guest
Hi, I hope some one can help with this.
I have a form with two listboxes it is being used as a way of allowing users
to add to the combo boxes in the database.
the first list box has a list of tables the bound column is a description of
the tables column 2 has the table name. clicking on a description on listbox
1 will show all the items in that table in listbox 2 these tables only have 1
field therefore only one column,
I have used (in After update):
On Error Resume Next
Select Case cboCountry.Value
Case "Consultants"
cboCity.RowSource = "tblConsultant"
Case "Genetic Mutations"
cboCity.RowSource = "tblMutations"
End Select
to populate listbox 2 this works perfectly
I would like to be able to add to listbox 2, by typing in a textbox and
pressing a button, this is where I am stuck, I am sure I can get the
tablename from listbox 1, column 2, but I have no idea how to code this, I am
having a severe brain block today. any ideas
thank you in advance
Phil
I have a form with two listboxes it is being used as a way of allowing users
to add to the combo boxes in the database.
the first list box has a list of tables the bound column is a description of
the tables column 2 has the table name. clicking on a description on listbox
1 will show all the items in that table in listbox 2 these tables only have 1
field therefore only one column,
I have used (in After update):
On Error Resume Next
Select Case cboCountry.Value
Case "Consultants"
cboCity.RowSource = "tblConsultant"
Case "Genetic Mutations"
cboCity.RowSource = "tblMutations"
End Select
to populate listbox 2 this works perfectly
I would like to be able to add to listbox 2, by typing in a textbox and
pressing a button, this is where I am stuck, I am sure I can get the
tablename from listbox 1, column 2, but I have no idea how to code this, I am
having a severe brain block today. any ideas
thank you in advance
Phil