* FROM [talaba] WHERE (Fam LIKE '"+textBox1->Text+"%')");} )
.
6-dastur: MS Access ning MBdagi jadval yozuvlarini
yangilovchi vizual dastur
Ushbu dasturni tuzish uchun Visual C++ dasturida Windows
Form Application muhitida yangi loyiha yaratiladi. Formaga 2 ta
Button va DataGridView komponеntalari joylashtiriladi.
Dasturning kodlari quyidagicha:
1.
#pragma endregion
2.
DataSet ^ NaborDannix;
3.
OleDb::OleDbDataAdapter ^ Adaptеr; OleDb::OleDbConnection ^
Ulanish;
4.
OleDb::OleDbCommand ^ Komanda;
5.
private: System::Void Form1_Load(System::Object^ sender,
System::EventArgs^ e){
6.
NaborDannix = gcnew DataSet();
7.
Ulanish = gcnew OleDb::OleDbConnection( "Data
Source=\"C:\\Oybek.mdb\";User "
+"ID=Admin;Provider=\"Microsoft.Jet.OLEDB.4.0\";");
8.
Komanda = gcnew OleDb::OleDbCommand();
9.
button1->Text = "MBdan o`qish";button1->TabIndex = 0;
10.
button2->Text = "MBni yangilash"; this->Text="MB ni
ma'lumotlarini yangilash";}
11.
private: System::Void button1_Click(System::Object^ sender,
Do'stlaringiz bilan baham: |