Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how i can use between query in vb.net using oledb database
Posted
Comments
DaveAuld 28-Sep-11 1:35am    
Between what 2 dates? 2 numbers?

Do you mean the BETWEEN operator? Then see here[^].
 
Share this answer
 
This Is simple If U have two date and want to select the value or data between two date, the use this code.
SQL
SELECT Date From TableName Where (date BETWEEN @date1 AND @date2)
 
Share this answer
 
v2
Go through these link for oledb connection string.
http://www.carlprothman.net/Default.aspx?tabid=87[^]

http://www.connectionstrings.com/access[^]

go through these links to use between operator

http://www.java2s.com/Code/Oracle/Select-Query/UsingtheBETWEENOperatorforinteger.htm[^]

http://www.w3schools.com/Sql/sql_between.asp[^]

Try by your self and let me know if you are facing any problem
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900