473,323 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

if conditions in access tables

Our Project has two tables
paymast table - empcode,fname,lname,date_join,total_el,total_sl
details table- el,sl,halfday_el,halfday_sl

An employee who has completed 10 years of service in the company is eligible for 30 days el in a year
An employee who has not 10 years of service in the company is eligible for 24 days el in a year
An employee who has not completed 1 year of service in the company is not eligible for any el

When a employee takes leave more than what he is entitled he has to be
in the without pay list report(which has to be created at the end to every month)

Please suggest me with detailed information

Thank you for the reply regarding update Query. It solved my problem
May 21 '07 #1
1 1341
ADezii
8,834 Expert 8TB
Our Project has two tables
paymast table - empcode,fname,lname,date_join,total_el,total_sl
details table- el,sl,halfday_el,halfday_sl

An employee who has completed 10 years of service in the company is eligible for 30 days el in a year
An employee who has not 10 years of service in the company is eligible for 24 days el in a year
An employee who has not completed 1 year of service in the company is not eligible for any el

When a employee takes leave more than what he is entitled he has to be
in the without pay list report(which has to be created at the end to every month)

Please suggest me with detailed information

Thank you for the reply regarding update Query. It solved my problem
  1. There seems to be no Relationship between the Paymast and Details Tables. Is this True?
  2. What exactly do you want to do - Update the [total_el] Field in the Paymast Table based on Years of Service calculated from [date_join] to the present, based on your specifications? Please be more specific.
May 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: GIMME | last post by:
One of my coworkers insists that one should never use static methods because race conditions exist. Thinking along the lines that all variable assignments are assignments to static variables. ...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
4
by: bhbgroup | last post by:
I have a query on one large table. I only add one condition, i.e. a date (the SQL reads like 'where date > parameterdate'. This query is rather quick if 'parameterdate' is either explicitly...
4
by: Vanessa | last post by:
Hi there I am an Access developer, and I have written applications for a 30 telephone call center, using the standard multiuser jet engine, it all works fine, but I want to move our systems onto...
3
by: opeca | last post by:
Hi all, I have two tables(A, B), and I would like to attach records from these ones. Only I have two conditions, else i can use UNION. 1. Condition: If the value in col2 in A table is in...
1
by: priyacd | last post by:
we are creating a leave maintainence details in access we have two tables master - empcode,fname,lname,brcode,dt_join,total_el,total_sl(main table) details- ...
2
by: Vicente | last post by:
Hi! I have 2 tables: Table Users: ID Name Password Birth
2
by: Steve | last post by:
I have zero experience with ODBC. If I have an Access frontend connected to a SQL Database using ODBC, are the tables connected like a frontend/backend Access database where the the tables you see...
12
by: =?ISO-8859-1?Q?Ren=E9?= | last post by:
Hi, is there a rule of thumb what is better/faster/more performant in SQL Server 2005? a) SELECT * FROM A INNER JOIN B ON B.ID = A.ID AND B.Cond1 = 1 AND B.Cond2 = 2 b) SELECT * FROM A INNER...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.