The code here creates a table for every instance in the combo box on my form. what I would like to do is have it run automatically without selecting each row/record/instance and pressing the button. I would want it to just run for every instance in the list.
Dim strSQL As String
Dim strSourceSelected As String
strSourceSelected = Trim$(Me![Combo5])
strSQL = "SELECT Market.* INTO " & strSourceSelected
strSQL = strSQL & " FROM Market"
strSQL = strSQL & " WHERE Market.Field4 = [Forms]![Create_Market]![Combo5]"
DoCmd.RunSQL strSQL
--
Message posted via http://www.accessmonster.com