R
Robb
I have a procedure that imports an Excel spreadsheet as a
new table into my Access database. Once I get the table
imported, I manually have to set the primary key (which
consists of three fields) and define the one-to-one
relationship with cascade update between the new table and
the db table.
Once that is done, I have a procedure that runs an update
query to update the db table with the imported data (which
comes from an oracle database) and another query that asks
the user to give a user-defined date and then updates a
field in a subset of the db table with that date. Then the
procedure deletes the imported table since it is no longer
needed.
I would like to automate the whole process. Is there a way
to define a primary key (that consists of three fields) in
a table and then create relationships and enforce ref
integrity in VBA, or will this always be a manual
operation? Thanks for any help!
Robb
new table into my Access database. Once I get the table
imported, I manually have to set the primary key (which
consists of three fields) and define the one-to-one
relationship with cascade update between the new table and
the db table.
Once that is done, I have a procedure that runs an update
query to update the db table with the imported data (which
comes from an oracle database) and another query that asks
the user to give a user-defined date and then updates a
field in a subset of the db table with that date. Then the
procedure deletes the imported table since it is no longer
needed.
I would like to automate the whole process. Is there a way
to define a primary key (that consists of three fields) in
a table and then create relationships and enforce ref
integrity in VBA, or will this always be a manual
operation? Thanks for any help!
Robb