i have a form:"Emloyees" with a combobox1. i have a table "City". when I add an emloyee to the my "Emloyees" table I open the comboBox1 all the cities i have and i choose one. if in the table City I add a city, I want that when i try to add an emloyee when I open the comboBox1 there will be the city i just add. i want a connection between the table City and the comboBox1 in the form
質問する
616 次
1 に答える
1
You need to make an sql query that get the Employee and then you can display it in the combobox
i have similar project so i know
its something like that
CityComboBoxEmp.DataSource = CityShow.UseSqlCommand("Select * From City").Tables[0];
CityShow is use class that's runing sql commands
于 2013-03-25T00:00:09.070 に答える