novoiceleft
Registered User.
- Local time
- Today, 21:02
- Joined
- Jul 4, 2004
- Messages
- 65
Hello All
I think (hope) this is a simple question.
I have split the main data in my database into two tables to avoid having a single, very large table. (Also, I would eventually like the two tables represented on two separate forms)
So I have t_Main (the primary key is EmployeeID) with some data in it, and and t_Details (the primary key is also EmployeeID) with additional data in it.
The two tables are linked by a one-to-one relationship with referential integrity.
Now it won't let me add a new employee to t_main, is it says I need a record in t_details as well.
Fair enough, but what i would like to achieve is this:
- To be able to add a new employee to t_main
- A record with the same EmployeeId to be automatically created in t_details, with all the other fields in t-details to be blank
What is the best way round the error message?
Many thanks
NoVoice
I think (hope) this is a simple question.
I have split the main data in my database into two tables to avoid having a single, very large table. (Also, I would eventually like the two tables represented on two separate forms)
So I have t_Main (the primary key is EmployeeID) with some data in it, and and t_Details (the primary key is also EmployeeID) with additional data in it.
The two tables are linked by a one-to-one relationship with referential integrity.
Now it won't let me add a new employee to t_main, is it says I need a record in t_details as well.
Fair enough, but what i would like to achieve is this:
- To be able to add a new employee to t_main
- A record with the same EmployeeId to be automatically created in t_details, with all the other fields in t-details to be blank
What is the best way round the error message?
Many thanks
NoVoice