473,322 Members | 1,501 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,322 software developers and data experts.

Need Help On Increment System

peeaurjee
hi!
i have a database about the employees. I want to make an Increment system about their salary. Our company will add $100 to one employee's salary after completing his 12 months just right from his Hiring Date. Please help me in this regard that what should come there in the query and any plus point from anyone will be appreciated.

Thanks in advance.
Dec 11 '07 #1
3 1417
Rabbit
12,516 Expert Mod 8TB
What have you tried so far?
Dec 11 '07 #2
missinglinq
3,532 Expert 2GB
You don't really say where you're trying to do this, but in a form

Me.BonusDate = DateAdd("yyyy",1,YourHireDate)

or in a query

BonusDate: DateAdd("yyyy",1,[YourHireDate])

Linq ;0)>
Dec 11 '07 #3
You don't really say where you're trying to do this, but in a form

Me.BonusDate = DateAdd("yyyy",1,YourHireDate)

or in a query

BonusDate: DateAdd("yyyy",1,[YourHireDate])

Linq ;0)>
hi!
Thanks Linq! i have already done this inside the query.

BonusDate: DateAdd("yyyy",1,[dlcfrom]) and also [Salary]+100 in another field.

I have also done a NextBonusDate: DateAdd("yyyy",2,[dlcfrom]) and [Salry]+200 for another next year.

kindly i would like to ask that what should i do if the years go to 5,6 or 10. I think the whole table or query will be messed up with such a huge number of fields. So in such case what should i do? should i go for it or is there any way to manipulate some other code so that it gives me Many years records in each row in one filed relating to One Employee. This will create a one-to-many relationship of Employees Table to the Salary Table.
Dec 12 '07 #4

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

Similar topics

4
by: Duffey, Kevin | last post by:
I don't know if jdbc/java code requires this, but when I use two gui admin tools I found, and I insert a row into the table using their row editor feature, both require me to enter a number for the...
5
by: MFC | last post by:
Ok, after three C# books, (C# How to Program, Programming in the Key of C#, and C# Weekend Crash Course) and three weeks, I believe I have tried everything to make a certain form function...
8
by: Jack Addington | last post by:
I want to scroll through the alphabet in order to scroll some data to the closest name that starts with a letter. If the user hits the H button then it should scroll to the letter closest to H. ...
5
by: Pauloviè Michal | last post by:
hi all, I have problem with SERIAL field type (or sequence functionality). I have table with three columns - ID, IDS, NAME. I want auto-increment IDS grouped by ID. Example: 1, 1, Ferdo 1, 2,...
1
by: t4zone58 | last post by:
Hi Basically I am print out a group of number with a certain increment. However I found out a wierd thing happened from the result The code I wrote: Dim number1, number2, counter, increment As...
4
by: naknak4 | last post by:
Introduction This assignment requires you to develop solutions to the given problem using several different approaches (which actually involves using three different STL containers). You will...
6
by: naknak | last post by:
Introduction This assignment requires you to develop solutions to the given problem using several different approaches (which actually involves using three different STL containers). You will...
0
by: satan | last post by:
I need to call the recursive binarySearch method from my OrderedArrayList class into my main program public abstract class ArrayListClass { protected int length; //to store the...
24
by: user923005 | last post by:
The purpose is for a shellsort. I am experimenting with the increment for shellsort using a modified version of Pete's driver and this bit of code (shell_ratio is a floating point number for the...
4
by: Carlos Yakimov | last post by:
I want to convert this C# Linq Query into VB.NET void Load() { int i = 1; var q = from P in Persons select new System.Windows.Forms.ListViewItem( P.Name, i++ ); } I did this:
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...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
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.