A
agassi
hi guys,
i want to select from the database using a query with a variable name.
but it's not working. can you tell me what is wrong with my code(i'm
using C++.NET):
int index = textBox1->Text->ToInt32(0);
myadapter1 = new Data::OleDb::OleDbDataAdapter("SELECT AssetID, Make,
Model, YearAcquired, Price, Description FROM CompanyAssets WHERE
CompanyAssets.AssetCategoryID = & index &",conn1);
myadapter1->Fill(mydataset);
i think the problem comes from : & index & but i dont know to solve
it. please help!!
i want to select from the database using a query with a variable name.
but it's not working. can you tell me what is wrong with my code(i'm
using C++.NET):
int index = textBox1->Text->ToInt32(0);
myadapter1 = new Data::OleDb::OleDbDataAdapter("SELECT AssetID, Make,
Model, YearAcquired, Price, Description FROM CompanyAssets WHERE
CompanyAssets.AssetCategoryID = & index &",conn1);
myadapter1->Fill(mydataset);
i think the problem comes from : & index & but i dont know to solve
it. please help!!