TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Israel
692
1.3k
219.3k
between two dates for Msaccess database...
Nov 12 2014 9:47 AM
Hi!
I do make filter for one date for one column belonging to a database.
This is the code. Its works fine:
private void dataReservasviaturas_ValueChanged(object sender, EventArgs e)
{
conn.Open();
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "select * from personel where dataworkers like ('" + datetimeworker.Text + "%')";
cmd.ExecuteNonQuery();
DataTable dt = new DataTable();
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(dt);
conn.Close();
dataGridView1.DataSource = dt;
}
But I would like to learn how can I make filter between two dates using two datetimepickers.
Thanx.
Reply
Answers (
9
)
Windows Forms
Fields Validations descriptions