help in writing query in access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a need to write a query with a linked table to sql server from a table.

like select ponumber, closeddate from po
where closeddate < 30days from today's date.

Thank you,
-Me
 
Rick,

First I posted in general discussion and then I realized that I should have
posted
it on Access Queries group, that's why I posted it there again.

I am sorry if you had to spend a bit too much time.

Thanks much,
-Me
 
SELECT PONumber, ClosedDate
FROM PO
WHERE ClosedDate < DateAdd("d",-30,Date())

You can adjust the -30 as needed to be a different number or positive.
 

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

Similar Threads

Running sum expression 2
Date 2
Totals query rework 1
Crosstab Query help 2
Format Function - Access 2000 2
Running Sum Problem 4
Query on Duration 1
Two Date Fields 2

Back
Top