Contributor
7Jun2006,16:53   #11
lieweffect's Avatar
it say the dbcom is undefined value.
Go4Expert Founder
8Jun2006,12:08   #12
shabbir's Avatar
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.
Contributor
8Jun2006,18:45   #13
lieweffect's Avatar
If I don't going through the OleDb code. The data will not list at the list box there.
Go4Expert Founder
8Jun2006,22:16   #14
shabbir's Avatar
But to get that all you need is call that function with a string and the error is in the string.
Team Leader
9Jun2006,04:30   #15
coderzone's Avatar
lieweffect probably you need to concentrate on basics first and get the grasp and then go for database programming in C#.
Contributor
9Jun2006,15:54   #16
lieweffect's Avatar
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
Go4Expert Founder
9Jun2006,16:32   #17
shabbir's Avatar
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.
Contributor
9Jun2006,18:51   #18
lieweffect's Avatar
Thank Q
I try to create again