Jump to content

[Resolvido]Devolver dados entre um intervalo de datas (SQL+VBNET)


Recommended Posts

É o Seguinte como faço em SQL o Seguinte:

Quero que ele va da data X a Y

Select * From reqfolha  where Data='" & dtp1.Text & "' Union Select * From reqfolha  where Data='" & dtp2.Text & "'

Se fizer isto ele vai pegar no meu valor de dtp1 e de dtp2 e mostra no Datagridview.

Mas o que queria era que ele fosse do valor de dtp1 to dtp2

Mostrar todos os valores de dtp1 ate dtp2

EDIT: Título melhorado. ribeiro55

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.