Please tell what's wrong in this code.. I am using 3 DateTimePicker.. I think that line has some problem...Please Help..
Jagruti22 0
Newbie Poster
Recommended Answers
Jump to PostI'd have to guess that cmdSearch is not defined. I suggest putting a breakpoint on that line then adding a watch on cmdSearch to see what's up. Please post the code where cmdSearch is defined and identify its scope. It is possible that you declared it without the
New
keyword …
Jump to PostYou see where you did
Dim cmdUpdate As OleDbCommand Dim cmdSearch As OleDbCommand Dim cmdDelete As OleDbCommand
What you have done is define pointers to specific objects but you didn't actually create those objects. What you want is
Dim cmdUpdate As New OleDbCommand Dim …
All 5 Replies
Reverend Jim 4,780
Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Jagruti22
commented:
Yes sir, I am posting the code where i declared cmdSearch . +0
Jagruti22 0
Newbie Poster
Reverend Jim 4,780
Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Jagruti22
commented:
Thank You so much sir..my error is solved.. +0
Jagruti22 0
Newbie Poster
Reverend Jim 4,780
Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.