HELP W/ DATES

J

Joe Hennessey

Ok what im trying to do is i have a database with all
accounts in it. What i want to do is run a query to pull
out all the acounts that have the years 98, 99, and 00 in
the date field so i can close them out. How do i search
for just the last 2 digits in the date so i can pull out
all 98, 99, and 00 accounts? Please somebody help me.

Thanks, joe
 
V

Van T. Dinh

Try the Query with SQL String like:

SELECT *
FROM YourTable
WHERE DateField BETWEEN #01/01/1998# AND #12/31/2000#
 
J

John I

Joe,
another way is to write a new qry using the tabel that has
the dates. In design view go to the column that has the
date field in it. Use the following as the criteria:
<=01/01/1998 and >=12/31/2000

if you date field only has 2 digits then use the 2 digit
year instead... this is only if you like to work wiht the
design view instead of writing the sql.

JI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top