I guys I need your help, I seem to have got suck again.
I have a table and a master detail form in which I am trying to create multiple records in the same table.
Table - Goals_Personal
ID - INT (AutoIncrement)
Employee_No (INT)
GID (INT)
Goal Title (VAR)
I need to first check if a record exist for Employee_No and GID.
Then if a record exists I want it to show
If Not then I need to add a new record (Master detail), that is linked to the Employee_No and Creates the next GID +1 up to a maximum of 5.
Here is what the form would look like
Main Form
ID = {2015001}
Employee_No = {234}
GID = {1}
Goal Title = {Increase sales revenue by 15%}
Master Detail - Goal 1
ID = {2015002}
Employee_No = {234}
GID = {2}
Goal Title = {Decrease costs by 15% in Toronto}
Master Detail Goal 2
ID = {2015003}
Employee_No = {234}
GID = {3}
Goal Title = {Increase customer satisfaction by 33%}
Does anyone know how to solve this?
Thanks a million,
Simona