I am trying to query an access database programaticly
the database is in office 2003
I want to show results for any records that are between two dates and DO NOT have Old in the distinguishedName colum. I need wild cards at both sides of *old*
In VB it removes only one record where Old is in distinguishedName and then shows the rest
Access query which works
In VB I have tried
Does anyone know why?
Thanks in advance
the database is in office 2003
I want to show results for any records that are between two dates and DO NOT have Old in the distinguishedName colum. I need wild cards at both sides of *old*
In VB it removes only one record where Old is in distinguishedName and then shows the rest
Access query which works
VB.NET:
SELECT tblComputers.distinguishedName, *
FROM tblComputers
WHERE (((tblComputers.distinguishedName) Not Like "*Old Computers*") AND ((tblComputers.Last_Logon) Between #1/1/1601# And #12/12/2009#));
In VB I have tried
VB.NET:
"SELECT * FROM tblComputers WHERE distinguishedName Not Like '*Old*' and [Last_Logon] BETWEEN #01/01/1601# and #12/12/2009#"
VB.NET:
SELECT * FROM tblComputers WHERE (((tblComputers.distinguishedName) Not Like '*Old*') AND ((tblComputers.Last_Logon) Between #1/1/1601# And #12/12/2009#));
Does anyone know why?
Thanks in advance
Last edited: