0
lieweffect's Avatar, Join Date: Apr 2006
Contributor
it say the dbcom is undefined value.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Sqlstring is passed as variable to FillListBox function and so the value of Sqlstring can be determined before hand only and you dont need to be going through the OleDb code.
0
lieweffect's Avatar, Join Date: Apr 2006
Contributor
If I don't going through the OleDb code. The data will not list at the list box there.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
But to get that all you need is call that function with a string and the error is in the string.
0
coderzone's Avatar, Join Date: Jul 2004
Team Leader
lieweffect probably you need to concentrate on basics first and get the grasp and then go for database programming in C#.
0
lieweffect's Avatar, Join Date: Apr 2006
Contributor
Thank Q for your advise coderzone
Actually the original program is in vb code.
It can run properly.
After I convert it into c# follow the c# syntax it cannot run.
So,may I know which is the mistake from the code
Thank Q
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by lieweffect
So,may I know which is the mistake from the code
The error is in creation of the sql string.
0
lieweffect's Avatar, Join Date: Apr 2006
Contributor
Thank Q
I try to create again