Hi,

its a rookie question but my sql tag does not work
VB Code:
  1. sqltoevoegen = "SELECT * FROM toevoegen WHERE datum BETWEEN " & Bdatum & " AND " & Edatum & " "
  2.  
  3. explaination:
  4.  
  5. toevoegen = tabel name
  6. datum = date/time field
  7. bdatum = dim bdatum as date
  8. edatum = dim edatum as date
  9.  
  10. bdatum = txtbdatum.text
  11. edatum = txtedatum.text
my problem is that he wil not look in the field. I want that I can search between two date's