--- In AccessVBACentral@
>
> I have a senerio where I have a Fact table that has the following fields
> FACT_ID, Emp_ID, Point, StartDate, Date_Plus30Days, Comments
>
> The purpose of the app is to track every time a person misses a day of work they get some Point # assigned to them.
> If they don't call in and don't show they get 5 points.
> If they don't show but call they get 2 points.
>
> The issue that I'm having is that if someone misses work on 1/15/2009 and they get 5 points.
> Then the next day they miss is on 2/28/2009 and they get 2 points.
> Lets say they have one more missed day on 4/5/09 for 1 point.
>
> The records in the table would look like the following.
> FACT_ID, Emp_ID, Point, StartDate, Date_Plus30Days, Comments
> 1 1 5 1/15/09 2/15/09 Test 1
> 2 1 2 2/28/09 3/28/09 Test 2
> 3 1 1 4/5/09 5/5/09 Test 3
>
> **I have an update query that goes in and populates the Date_Plus30Days using the logic DateAdd("d",
>
> The time between 1/15/09 and 2/28/09 is more than 30 days.
> I need a way to Insert a record for -1 every time their is a gap of more than 30 days between entries.
>
> If you could help me out that would be great or at least give me some ideas on how to go about this.
>
> Current Table Structure is:
>
> Fact Table
> FACT_ID, Emp_ID, Point, StartDate, Date_Plus30Days, Comments
>
> Employee Table
> Emp_ID, Employee, Employee_NBR
>
> Calendar Table
> Calendar_ID, Date, Month, Year
>
> I have a current Append Query that inserts the -1 for every 30 days based on a table that I created that has 1 date for each month. But this isn't correct for the requirement.
> They need it to insert for every instance where there is a 30 day span between records.
>
> INSERT INTO FACT ( POINT, EMP_ID, REASON, DATE_ENTERED )
> SELECT -1 AS POINT, [(-1_LKUP) Query_ALL_CUST_
> FROM [(-1_LKUP) Query_ALL_CUST_
> WHERE FACT.EMP_ID IS NULL;
>
ÇáÓáÇã Úáíßã
>if you want to record date exactly in table
>make two record start_date and last date
>in anew record calculate the diffrence between them
and give the points respect to only one month
------>Note :
>>your calculation applied to only one month
Tecnologia, programação e muito Visual FoxPro.
quinta-feira, 5 de novembro de 2009
[Access VBA Central] Re: Rolling 30 Days Add in -1 Point
__._,_.___
.
__,_._,___
Assinar:
Postar comentários (Atom)
Arquivo do blog
-
▼
2009
(1549)
-
▼
novembro
(168)
- RE: {Disarmed} [usuarios_fox] LECTOR DE HUELLAS DI...
- [usuarios_fox] LECTOR DE HUELLAS DIGITALES
- Fw: ]] XL-mania [[ Bikin nomor urut di sheet excel
- [Access VBA Central] Programmically setting query ...
- [Access VBA Central] Re: Problem with Report Totals
- ]] XL-mania [[ Membuat template Kode Material & De...
- ]] XL-mania [[ Mengundi DoorPrize
- ]] XL-mania [[ excel 2007 error...
- Re: ]] XL-mania [[ Membuat Grafik Sclatter
- Re: ]] XL-mania [[ Membuat Grafik Sclatter
- ]] XL-mania [[ Membuat Grafik Sclatter
- Re: ]] XL-mania [[ Konversi Text Angka ke Bilangan...
- ]] XL-mania [[ File - rules_and_tips
- Re: ]] XL-mania [[ Makro untuk sheet terakhir
- Re: ]] XL-mania [[ Mengurutkan SubString-Angka dal...
- Re: ]] XL-mania [[ Bikin nomor urut di sheet excel
- Re: ]] XL-mania [[ Konversi Text Angka ke Bilangan...
- RE: ]] XL-mania [[ vendor list dan jumlah hutang
- ]] XL-mania [[ Konversi Text Angka ke Bilangan ter...
- Re: ]] XL-mania [[ Kunci Row Scr Otomatis
- Re: ]] XL-mania [[ Kunci Row Scr Otomatis
- Re: ]] XL-mania [[ Konversi Text Angka ke Bilangan...
- Re: ]] XL-mania [[ macro utk create worksheet ....
- Re: ]] XL-mania [[ vendor list dan jumlah hutang
- Re: ]] XL-mania [[ Makro untuk sheet terakhir
- Re: ]] XL-mania [[ Kunci Row Scr Otomatis
- Re: ]] XL-mania [[ mencari average
- Re: ]] XL-mania [[ Bikin nomor urut di sheet excel
- Re: ]] XL-mania [[ vendor list dan jumlah hutang
- Bls: ]] XL-mania [[ Makro untuk sheet terakhir
- RE: ]] XL-mania [[ Konversi Text Angka ke Bilangan...
- ]] XL-mania [[ Mengurutkan SubString-Angka dalam S...
- ]] XL-mania [[ Konversi Text Angka ke Bilangan ter...
- [usuarios_fox] Twitter
- Re: ]] XL-mania [[ Re: mencari average
- RE: [usuarios_fox] ancho de Columna de control gri...
- Re: ]] XL-mania [[ Lembur rutin dan non rutin (Sus...
- ]] XL-mania [[ vendor list dan jumlah hutang
- [usuarios_fox] ancho de Columna de control grid se...
- ]] XL-mania [[ Makro untuk sheet terakhir
- RE: [usuarios_fox] REPORT A PDF
- [Access VBA Central] Urgente** Programador VBA/Access
- RE: [usuarios_fox] REPORT A PDF
- RE: [usuarios_fox] REPORT A PDF
- Re: [usuarios_fox] REPORT A PDF
- RE: [usuarios_fox] REPORT A PDF
- [usuarios_fox] REPORT A PDF
- ]] XL-mania [[ Kunci Row Scr Otomatis
- Re: ]] XL-mania [[ makro cara copy ke file baru de...
- ]] XL-mania [[ Bikin nomor urut di sheet excel
- ]] XL-mania [[ macro utk create worksheet ....
- Re: ]] XL-mania [[ mencari average
- Re: ]] XL-mania [[ makro cara copy ke file baru de...
- Re: ]] XL-mania [[ Re: mencari average
- ]] XL-mania [[ Re: mencari average
- ]] XL-mania [[ mencari average
- Re: ]] XL-mania [[ weighted average saham untuk po...
- ]] XL-mania [[ makro cara copy ke file baru dengan...
- Re: ]] XL-mania [[ cara print sheet 3 dari sheet 1
- Re: ]] XL-mania [[ makro cannot rename excel file
- ]] XL-mania [[ macro link email
- ]] XL-mania [[ makro cannot rename excel file
- ]] XL-mania [[ cara print sheet 3 dari sheet 1
- Re: ]] XL-mania [[ Mencari posisi urutan ke berapa...
- Re: ]] XL-mania [[ MATCH & INDEX Belum Menjawab
- RE: ]] XL-mania [[ MATCH & INDEX Belum Menjawab
- RE: ]] XL-mania [[ MATCH & INDEX Belum Menjawab
- RE: ]] XL-mania [[ Lembur rutin dan non rutin (Sus...
- ]] XL-mania [[ Lembur rutin dan non rutin (Susulan...
- Re: ]] XL-mania [[ Cara ubah bulan di 21 file berbeda
- ]] XL-mania [[ MATCH & INDEX Belum Menjawab
- Re: [Access VBA Central] Programador VBA/Access Ri...
- Re: ]] XL-mania [[ membuat respons SINGLE
- [Access VBA Central] Programador VBA/Access Rio de...
- Re: ]] XL-mania [[ Mencari posisi urutan ke berapa...
- Re: ]] XL-mania [[ Mencari posisi urutan ke berapa...
- Re: ]] XL-mania [[ Mencari posisi urutan ke berapa...
- ]] XL-mania [[ membuat respons SINGLE
- Re: ]] XL-mania [[ Mencari posisi urutan ke berapa...
- ]] XL-mania [[ weighted average saham untuk portof...
- Re: ]] XL-mania [[ VBA cetak data (Auto Number)
- [Access VBA Central] Re: Problem with Report Totals
- ]] XL-mania [[ Lembur rutin dan non rutin
- ]] XL-mania [[ Mencari posisi urutan ke berapa tan...
- [Access VBA Central] Problem with Report Totals
- [Access VBA Central] Free: Very useful Magazines &...
- Re: ]] XL-mania [[ kalkulasi dinamis ??
- Re: ]] XL-mania [[ row to column pake formula
- Re: ]] XL-mania [[ Rumus aging piutang
- Re: ]] XL-mania [[ copy file ke external hardisk t...
- Re: ]] XL-mania [[ Validation lis
- Re: ]] XL-mania [[ Membuat Insial satu keluarga di...
- Re: ]] XL-mania [[ Rekap sel yang berbeda nilai
- ]] XL-mania [[ Re: kalkulasi dinamis ??
- Re: ]] XL-mania [[ kalkulasi dinamis ??
- Re: ]] XL-mania [[ file BACK UP of.xlk
- Re: ]] XL-mania [[ VBA cetak data (Auto Number)
- Re: ]] XL-mania [[ VBA cetak data (Auto Number)
- ]] XL-mania [[ Bagi Qty sesuai dengan MAX
- ]] XL-mania [[ kalkulasi dinamis ??
-
▼
novembro
(168)
Nenhum comentário:
Postar um comentário