Why is the recordset empty after using a wildcard "*" ????????
Public sub command1_click()
Adodc1.RecordSource = "Select * from Lid where Achternaam like '" &
txtZoek.Text & "*' "
Adodc1.Refresh
.
.
.
.
End Sub
Public sub command1_click()
Adodc1.RecordSource = "Select * from Lid where Achternaam like '" &
txtZoek.Text & "*' "
Adodc1.Refresh
.
.
.
.
End Sub
HTH
--
Patrick Logan, MCSD
Opinions expressed are my own and not necessarily those of my employer.
Quote:> Why is the recordset empty after using a wildcard "*" ????????
> Public sub command1_click()
> Adodc1.RecordSource = "Select * from Lid where Achternaam like '" &
> txtZoek.Text & "*' "
> Adodc1.Refresh
> .
> .
> .
> .
> End Sub
Quote:> Why is the recordset empty after using a wildcard "*" ????????
> Public sub command1_click()
> Adodc1.RecordSource = "Select * from Lid where Achternaam like '" &
> txtZoek.Text & "*' "
> Adodc1.Refresh
> .
> .
> .
> .
> End Sub
I think you are using OLEDB JET provider. In case of Jet 3.51 you need to
use *, but in case of Jet 4.0 default is % wildcard instead of *.
--
Val Mazur
Microsoft MVP
Quote:> Why is the recordset empty after using a wildcard "*" ????????
> Public sub command1_click()
> Adodc1.RecordSource = "Select * from Lid where Achternaam like '" &
> txtZoek.Text & "*' "
> Adodc1.Refresh
> .
> .
> .
> .
> End Sub
I want to return (for each row) the max of three columns, outputing one
column.
How can I do this in SQL?
2. Designer 2000 Installation !!!!
3. Wildcard in "Like" operator
4. Application.Echo doesn't work with ADP project?
5. HELP:- SQL "like" with wildcard expression
6. Q: (long) Poor update Perf.
7. Wildcard Usage with "IN" Statement
9. How to make a "decimal"-field to an "integer"-field
10. "."and ","
11. The ""string""
12. aReport."Field".SetFilter("this")?