Code/Stored Procedure to auto populate tables from main table 
Author Message
 Code/Stored Procedure to auto populate tables from main table

Can anyone provide me with sample script in VB or SQL that would
automatically populate certain linked tables with records matching the
record the user just added to the main table?


Sat, 10 May 2003 03:00:00 GMT  
 Code/Stored Procedure to auto populate tables from main table
I think you need to be more specific.  What do you mean "records matching
the record"?  One is plural the other singular.  Is the dabase design
appropriate?  Why are you duplicating this imformation that already exists
in your system?
Quote:

>Can anyone provide me with sample script in VB or SQL that would
>automatically populate certain linked tables with records matching the
>record the user just added to the main table?



Sun, 11 May 2003 03:00:00 GMT  
 Code/Stored Procedure to auto populate tables from main table
When someone enters a record in the main table, the Employee table, I want
the program to automatically save the key for that record in four other
linked tables that have the referential integrity set.  The problem I'm
having is that the entry person may accidently skip one out of a sequence of
entry screens, one for each linked table mentioned above.  If that happens
and a record is not saved in one of those tables, the query that they use to
view an employee's information all on one page will not return that record.

So essentially, I just want to save a "blank" record in the other four
tables, with the same primary key of course.

By the way, thank you for responding so quickly.

Quote:

> I think you need to be more specific.  What do you mean "records matching
> the record"?  One is plural the other singular.  Is the dabase design
> appropriate?  Why are you duplicating this imformation that already exists
> in your system?


> >Can anyone provide me with sample script in VB or SQL that would
> >automatically populate certain linked tables with records matching the
> >record the user just added to the main table?



Sun, 11 May 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Auto create database, table, stored procedure

2. sub report changes its source stored procedure to main report's stored procedure

3. Linking Access Tables in Different *.mdb Files, Populating an Access Table From Several Others

4. Linking Access Tables in Different *.mdb Files, Populating an Access Table From Several Others

5. populate a field in a table using code

6. Stored Procedure with temporary table error in dataadapter

7. tried dts copy of tables stored procedures etc and it fails exery time

8. Stored Procedure temporary table failing - HELP!!!!

9. Stored Procedure - Table fetch

10. Table input argument for oracle stored procedure

11. Calling a procedure name stored in a table

12. how to return a table from a stored procedure

 

 
Powered by phpBB® Forum Software