alfred
08-12-2002, 01:39 PM
I have a table with these
...| info | birth | death | ...
where birth and death represent a range of time
and a variable
Dim mydate
mydate = Date
with date of my system
I want select from table only the records where mydate belong to range [birth death]
---------------
sql = "SELECT * FROM table WHERE mydate BETWEEN #"& birth &"# AND #"& death &"#"
but i have error:
Microsoft OLE DB Provider for ODBC Drivers errore "80040e14'
[Microsoft][Driver ODBC Microsoft Access] Errore di sintassi nella data nell'espressione della query 'mydate BETWEEN ## AND ##'.
I have cheked that birth and death are not empty.
thank you
...| info | birth | death | ...
where birth and death represent a range of time
and a variable
Dim mydate
mydate = Date
with date of my system
I want select from table only the records where mydate belong to range [birth death]
---------------
sql = "SELECT * FROM table WHERE mydate BETWEEN #"& birth &"# AND #"& death &"#"
but i have error:
Microsoft OLE DB Provider for ODBC Drivers errore "80040e14'
[Microsoft][Driver ODBC Microsoft Access] Errore di sintassi nella data nell'espressione della query 'mydate BETWEEN ## AND ##'.
I have cheked that birth and death are not empty.
thank you