Basic MS Access question
Aug. 27th, 2009 11:08 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I am trying to calculate the difference between 2 dates in an MS Access Query, and then have that difference impact the addition of a value to a new column.
I have [PepsiDate] and [VisitDate] from a couple of
For example, the first date is [PepsiDate] and the second date is [VisitDate]. If [VisitDate] - [PepsiDate] is within 7 days, I want to update a new column [PepsiWithin7] to say 'Yes.'
Is there a way to create this populating? or for the new field to maybe just subtract dates the way I've described?
x-posted to
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-community.gif)
Re: GOT IT!!!
Date: 2009-08-27 07:19 pm (UTC)I actually love solving problems, so this was a nice break for me from my more monotonous work.
Re: GOT IT!!!
Date: 2009-08-27 07:20 pm (UTC)New tag -- Database. Because reading RaceFail all day doesn't pay the bills.
Re: GOT IT!!!
Date: 2009-08-27 08:30 pm (UTC)I discovered that getting pissed off every day about something new was a waste of energy. And more often than not I was as annoyed with the GroupThink and assumptions drawn as I was with the Fail.
Re: GOT IT!!!
Date: 2009-08-27 10:38 pm (UTC)Yes, you're only a good person if you're putting in as much energy as the MOST INVOLVED PERSON! Also, theoretical and sociological explanations are always superior to scienctific and biological ones. You,