Re: help with SQL queries
From: sean (sean_NO_SPAM_at_shopsmart.com.au)
Date: 07/01/04
- Next message: pali: "RE: help with SQL queries"
- Previous message: pali: "Re: DataColumn.Expression error handling"
- In reply to: agassi: "help with SQL queries"
- Next in thread: simo zerrifi: "Re: help with SQL queries"
- Reply: simo zerrifi: "Re: help with SQL queries"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 22:43:17 +1000
hey there,
index = somevalue from somewhere
WHERE CompanyAssets.AssetCategoryID =" & index, conn1)
HTH - Sean
"agassi" <zerrifi@yahoo.fr> wrote in message
news:58da9239.0407010413.d8e40a4@posting.google.com...
> 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!!
- Next message: pali: "RE: help with SQL queries"
- Previous message: pali: "Re: DataColumn.Expression error handling"
- In reply to: agassi: "help with SQL queries"
- Next in thread: simo zerrifi: "Re: help with SQL queries"
- Reply: simo zerrifi: "Re: help with SQL queries"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|