View Single Post
  #21  
Old November 15th, 2008, 08:19 AM posted to microsoft.public.access.gettingstarted
caseysmydog
external usenet poster
 
Posts: 17
Default Can I do this in Access? Please help


--
David


"John W. Vinson" wrote:

On Fri, 14 Nov 2008 08:48:13 -0800, caseysmydog
wrote:

Query:

Field Deceased Date of Death Caregivers Name Address
Table Table1 Table1 Table1
Table1
Sort
Show Y Y Y
Y
Criteria =1
or:
Dateadd("m",1)date of death))

Data above is skewed but it gives the idea.
Many thanks


If you want to display a query here, please open it in design view; select
View... SQL from the menu; and post the SQL text here. It may look cryptic but
it's the *real* query, for which the grid is just a design tool, and the folks
who answer questions here can read it like today's newspaper.

As written - if I'm interpreting it correctly - this query will return an
error because the expression Dateadd("m",1)date of death)) makes no sense.
Even if it were corrected to Dateadd("m",1, [date of death]) it would return
only those records where the Date of Death was December 31, 1899 (one day
after the "anchor point" for Date/TIme fields), or was equal to one month
after the date of death - so you'll get no results.

Perhaps you could explain in words what results you want from the query.
--

John W. Vinson [MVP]