let the user decide

  • Thread starter Thread starter sase m via DotNetMonster.com
  • Start date Start date
S

sase m via DotNetMonster.com

I want to let the user decide for the date in the query. I want to sort the
database and put it in the datagrid.
I wrote this query :

SELECT *FROM table WHERE date BETWEEN #27/6/2005 20:20:30# and #28/6/2005
20:20:30#
And it works
But I want to put two MaskedBoxs and let the user decide for the date
I know how to do it with one variable but for two, please some one help me
 
I want to let the user decide for the date in the query. I want to
sort the database and put it in the datagrid.
I wrote this query :

SELECT *FROM table WHERE date BETWEEN #27/6/2005 20:20:30# and
#28/6/2005
20:20:30#
And it works
But I want to put two MaskedBoxs and let the user decide for the date
I know how to do it with one variable but for two, please some one
help me


FYI, take a look at SQLParameters... using SQLParameters will prevent
malcious data from being entered into the SQL command. It'll also allow you
to specify dynamic parameters easily.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top