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.
 
Back
Top