seashore67
Technical User
Here is my current coding:
SELECT [Client Data].[Client Name], [Client Data].[Last Date In Program]
FROM [Client Data] INNER JOIN [Post Partnum Info] ON [Client Data].[Client Name] = [Post Partnum Info].[Client Name]
WHERE ((([Client Data].Age)>=20 And ([Client Data].Age)<=25) AND (((Year([Post Partnum Info].[DOB]))+1)<Year(Now())))
GROUP BY [Client Data].[Client Name], [Client Data].[Last Date In Program], [Post Partnum Info].DOB
HAVING ((([Post Partnum Info].DOB)>#1/1/1988#))
ORDER BY [Client Data].[Last Date In Program] DESC;
In the where command I am attempting to add 1 year to the DOB and if that year is less than today's year I want to omit that person. For some reason my current code is not working. Any suggestions to what I've done wrong? Thanks.
Andrew
SELECT [Client Data].[Client Name], [Client Data].[Last Date In Program]
FROM [Client Data] INNER JOIN [Post Partnum Info] ON [Client Data].[Client Name] = [Post Partnum Info].[Client Name]
WHERE ((([Client Data].Age)>=20 And ([Client Data].Age)<=25) AND (((Year([Post Partnum Info].[DOB]))+1)<Year(Now())))
GROUP BY [Client Data].[Client Name], [Client Data].[Last Date In Program], [Post Partnum Info].DOB
HAVING ((([Post Partnum Info].DOB)>#1/1/1988#))
ORDER BY [Client Data].[Last Date In Program] DESC;
In the where command I am attempting to add 1 year to the DOB and if that year is less than today's year I want to omit that person. For some reason my current code is not working. Any suggestions to what I've done wrong? Thanks.
Andrew