|
-
Mar 29th, 2012, 10:57 AM
#1
Thread Starter
New Member
Search query of "DateTimePicker"
I have a field DateTimePicker in my database.
I want to add a search query to search the date.
When I use DateTimePicker1.text or .value it shows error.
How I can build a DateTimePicker query?? Please help me.
I'm using visual studio 2010.
-
Mar 29th, 2012, 10:59 AM
#2
Re: Search query of "DateTimePicker"
well, w/o the code or the exact error message, we can't help much.
-tg
-
Mar 29th, 2012, 11:09 AM
#3
Thread Starter
New Member
Re: Search query of "DateTimePicker"
"Fail to convert parameter value from a String to DateTIme."
this error shown when I run the program and perform a search query.
The code is
Private Sub btnSearchMeetingDate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearchMeetingDate.Click
Try
Me.ContactsTableAdapter.SearchMeetingDate(Me.Database1DataSet.Contacts, DateTimePicker1.Value & "%")
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|