Microsoft Office Forums


Reply
Thread Tools Display Modes

Formula and Data Entry Field

 
 
Christine
Guest
Posts: n/a

 
      08-28-2008, 07:40 PM
Help.
I am a novice at Access. I need to create a formula that will look for an
occurence of a value for a 3 month time frame.

Example: I will have each month in a field, each year in a field, a number
value for occurences in a field. This will be put into a data entry form.

I will then need to run a report that will show the # of occurrences for a
selected 3 month period.

Ultimately I want users to be alerted when an occurrence is approaching 3
within a 3 month period.

How do I do this?
 
Reply With Quote
 
 
 
 
KARL DEWEY
Guest
Posts: n/a

 
      08-28-2008, 08:10 PM
>>Example: I will have each month in a field, each year in a field, a number
value for occurences in a field.
You should use a DateTime DataType field to store the date instead of
separate fields for each.
Is the 'value for occurences' a field to indicate how many occurences there
were or data value at the occurence.

I think you need the following table structure --
Occurence --
OccurenceID - Autonumber - Primary key
OccurDate - DateTime
Value - Number - long integer (or maybe single based of data being stored -
1, 2, 5, etc. OR 2.1, 5.7, 3.97, etc.)

For the last 3 months use this query --
SELECT Count([OccurenceID] AS Occurences
FROM Occurence
WHERE OccurDate Between Date() - Day(Date()) And DateAdd("m", -3, Date() -
Day(Date()))+1;


--
KARL DEWEY
Build a little - Test a little


"Christine" wrote:

> Help.
> I am a novice at Access. I need to create a formula that will look for an
> occurence of a value for a 3 month time frame.
>
> Example: I will have each month in a field, each year in a field, a number
> value for occurences in a field. This will be put into a data entry form.
>
> I will then need to run a report that will show the # of occurrences for a
> selected 3 month period.
>
> Ultimately I want users to be alerted when an occurrence is approaching 3
> within a 3 month period.
>
> How do I do this?

 
Reply With Quote
 
Christine
Guest
Posts: n/a

 
      09-02-2008, 02:58 PM
Karl: Thank you, but I think I'm not savvy enough for that.

I think I have a better explanation now of what I'm trying to do.

It's absence database -- employees are allowed so many occurences in a 3
month, 9 month, and 12 month in a rolling 12 month timeframe. What I am
trying to identify is those employees getting close to 3, 9, & 12 months.
My absence dates are stored as mm/dd/yy. Here's my other problem if they
have for example 3 in 3month time frame and don't have any in the next 3
months there bank is set back to 0. Write now its a manual review process
and if I could just get the rolling 12 function to work, it would cut down
alot of time.

Thanks very much.

"KARL DEWEY" wrote:

> >>Example: I will have each month in a field, each year in a field, a number

> value for occurences in a field.
> You should use a DateTime DataType field to store the date instead of
> separate fields for each.
> Is the 'value for occurences' a field to indicate how many occurences there
> were or data value at the occurence.
>
> I think you need the following table structure --
> Occurence --
> OccurenceID - Autonumber - Primary key
> OccurDate - DateTime
> Value - Number - long integer (or maybe single based of data being stored -
> 1, 2, 5, etc. OR 2.1, 5.7, 3.97, etc.)
>
> For the last 3 months use this query --
> SELECT Count([OccurenceID] AS Occurences
> FROM Occurence
> WHERE OccurDate Between Date() - Day(Date()) And DateAdd("m", -3, Date() -
> Day(Date()))+1;
>
>
> --
> KARL DEWEY
> Build a little - Test a little
>
>
> "Christine" wrote:
>
> > Help.
> > I am a novice at Access. I need to create a formula that will look for an
> > occurence of a value for a 3 month time frame.
> >
> > Example: I will have each month in a field, each year in a field, a number
> > value for occurences in a field. This will be put into a data entry form.
> >
> > I will then need to run a report that will show the # of occurrences for a
> > selected 3 month period.
> >
> > Ultimately I want users to be alerted when an occurrence is approaching 3
> > within a 3 month period.
> >
> > How do I do this?

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a

 
      09-02-2008, 04:13 PM
What is it you do not understand?
I know what you want to do with your data. What I assumed was that your
data was stored like a spreadsheet.
Explain how your data is stored in the same fashion as below --
Absence table --
Employee - text
AbsenceMonth - text
AbsenceYear - number
Occurences - number

Sample data --
Joe Smith July 2008 2
Bill Jones July 2008 1
Joe Smith June 2008 0
Bill Jones June 2008 1

--
KARL DEWEY
Build a little - Test a little


"Christine" wrote:

> Karl: Thank you, but I think I'm not savvy enough for that.
>
> I think I have a better explanation now of what I'm trying to do.
>
> It's absence database -- employees are allowed so many occurences in a 3
> month, 9 month, and 12 month in a rolling 12 month timeframe. What I am
> trying to identify is those employees getting close to 3, 9, & 12 months.
> My absence dates are stored as mm/dd/yy. Here's my other problem if they
> have for example 3 in 3month time frame and don't have any in the next 3
> months there bank is set back to 0. Write now its a manual review process
> and if I could just get the rolling 12 function to work, it would cut down
> alot of time.
>
> Thanks very much.
>
> "KARL DEWEY" wrote:
>
> > >>Example: I will have each month in a field, each year in a field, a number

> > value for occurences in a field.
> > You should use a DateTime DataType field to store the date instead of
> > separate fields for each.
> > Is the 'value for occurences' a field to indicate how many occurences there
> > were or data value at the occurence.
> >
> > I think you need the following table structure --
> > Occurence --
> > OccurenceID - Autonumber - Primary key
> > OccurDate - DateTime
> > Value - Number - long integer (or maybe single based of data being stored -
> > 1, 2, 5, etc. OR 2.1, 5.7, 3.97, etc.)
> >
> > For the last 3 months use this query --
> > SELECT Count([OccurenceID] AS Occurences
> > FROM Occurence
> > WHERE OccurDate Between Date() - Day(Date()) And DateAdd("m", -3, Date() -
> > Day(Date()))+1;
> >
> >
> > --
> > KARL DEWEY
> > Build a little - Test a little
> >
> >
> > "Christine" wrote:
> >
> > > Help.
> > > I am a novice at Access. I need to create a formula that will look for an
> > > occurence of a value for a 3 month time frame.
> > >
> > > Example: I will have each month in a field, each year in a field, a number
> > > value for occurences in a field. This will be put into a data entry form.
> > >
> > > I will then need to run a report that will show the # of occurrences for a
> > > selected 3 month period.
> > >
> > > Ultimately I want users to be alerted when an occurrence is approaching 3
> > > within a 3 month period.
> > >
> > > How do I do this?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Notify when field entry has same data Mike Access Newsgroup 1 10-10-2006 08:21 PM
Lock a Field After Data Entry JDJones Access Newsgroup 2 08-07-2006 05:59 PM
Force data entry of a field on a form Bob B Access Newsgroup 5 05-13-2006 06:28 PM
Requiring data entry in a lookup field ChristaJ Access Newsgroup 3 11-14-2005 02:49 AM
Dollar field data entry ctdak Access Newsgroup 2 04-11-2004 09:41 PM



All times are GMT. The time now is 02:14 PM.