V
Vicky via DotNetMonster.com
Hi, I have a sql question need help. Thanks!
below code works,
------------------------------------------------------------------
mySelectQuery = "Insert into Performance4 (FUNDID, FUNDDATE,[RETURN]
,NAV,FINAL,SOURCE,Periodicity)"+
"VALUES (20222, '" + valDate + "'" +",0.6012," + valNavCl
+",1,'Returs','month')";
myCommand.CommandText = mySelectQuery;
------------------------------------------------------------------
but when I replace 20222 with FundID which is an int variable, and did a
addWatch,
it still display 'FundID', instead a number.
could anyone let me know what is the right syntax?
mySelectQuery = "Insert into Performance4 (FUNDID, FUNDDATE,[RETURN]
,NAV,FINAL,SOURCE,Periodicity)"+
"VALUES (FundID, '" + valDate + "'" +",0.6012," + valNavCl
+",1,'Returs','month')";
below code works,
------------------------------------------------------------------
mySelectQuery = "Insert into Performance4 (FUNDID, FUNDDATE,[RETURN]
,NAV,FINAL,SOURCE,Periodicity)"+
"VALUES (20222, '" + valDate + "'" +",0.6012," + valNavCl
+",1,'Returs','month')";
myCommand.CommandText = mySelectQuery;
------------------------------------------------------------------
but when I replace 20222 with FundID which is an int variable, and did a
addWatch,
it still display 'FundID', instead a number.
could anyone let me know what is the right syntax?
mySelectQuery = "Insert into Performance4 (FUNDID, FUNDDATE,[RETURN]
,NAV,FINAL,SOURCE,Periodicity)"+
"VALUES (FundID, '" + valDate + "'" +",0.6012," + valNavCl
+",1,'Returs','month')";