i want to retrieve record basing on date.
i have used backend as ms access and frontend as vb.net.
cmd = New OleDbCommand("select * from orders where qdate= '" + TextBox2.Text + "'", cn)

Recommended Answers

All 2 Replies

cmd = New OleDbCommand("SELECT * FROM orders where YearBorn LIKE '%" & Trim(TextBox2.Text) & "%'")
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.