samesdavis Posted October 5, 2012 at 01:00 PM Report #477856 Posted October 5, 2012 at 01:00 PM Estou com essa função e está dando erro na parte do Between Public bs As BindingSource Sub FiltraGrid() bs.Filter = "NM_ALUNO like '%" & Me.txtPesqNome.Text & "%' AND DT_FREQ Between #" & Format(Me.txtDTINI.Value, "yyyy/MM/dd") & "# And #" & Format(Me.txtDTFIM.Value, "yyyy/MM/dd") & "#" lblTotalRegistros.Text = "Total de alunos: " & GridFrequencia.RowCount End Sub Alguém pode me ajudar?
samesdavis Posted October 5, 2012 at 01:55 PM Author Report #477860 Posted October 5, 2012 at 01:55 PM resolvi desse jeito Sub FiltraGrid() bs.Filter = "DT_FREQ >= #" & Format(Me.txtDTINI.Value, "yyyy/MM/dd") & "# AND DT_FREQ <= #" & Format(Me.txtDTFIM.Value, "yyyy/MM/dd") & "# AND NM_ALUNO like '%" & Me.txtPesqNome.Text & "%'" lblTotalRegistros.Text = "Total de alunos: " & GridFrequencia.RowCount End Sub
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now