grobermatic
Technical User
I am currently working on a database which caclulates and stores performance figures for employees where I work.
Raw figures are input in to a subform after NAME, DATE WORKED, HOURS WORKED are input on the main form. All of which are stored in the same table.
I'm looking for a method of stopping the user from entering more than 1 date for the same employee.
My ideal result would be:
If the user inputs a date which already exists for the employee they have chosen, a msgbox informs them that the employee already has a record for that date, then gives the user a choice of either going back to the form and entering a different date or going to an alternative form and editing the original record for that date.
I've played around with SQL and VBA code and think that I'm getting close to something. I'v also looked at some of the other threads o nthis site which have been kinda useful but I'm having trouble applying them to my situation.
Any help would be greatly appreciated!
Raw figures are input in to a subform after NAME, DATE WORKED, HOURS WORKED are input on the main form. All of which are stored in the same table.
I'm looking for a method of stopping the user from entering more than 1 date for the same employee.
My ideal result would be:
If the user inputs a date which already exists for the employee they have chosen, a msgbox informs them that the employee already has a record for that date, then gives the user a choice of either going back to the form and entering a different date or going to an alternative form and editing the original record for that date.
I've played around with SQL and VBA code and think that I'm getting close to something. I'v also looked at some of the other threads o nthis site which have been kinda useful but I'm having trouble applying them to my situation.
Any help would be greatly appreciated!