C
Corey-g via AccessMonster.com
Hi All,
I have the following structure:
An import table (import_mpl - local access table) that has data loaded from
an Excel spreadsheet, and 2 lookup tables that are updated / appended to from
this imported data (Supplier & Channel - linked Oracle tables). I had
originally written an append query that worked for moving 'new' data into the
2 tables, but I had to change the structure and I'm now trying to change the
query as well.
So the import table has all of the data as text, but I want to move this data
into the 'base' table (also a linked Oracle table) and use references to the
lookup tables - common practice - but I am having some troubles with writing
the query. I am much better at writing SQL for Oracle, and that wouldn't be
a problem - but I can't seem to get the result I'm looking for in the Access
Query designer.
So I want to update all records in the supplier table, and add a reference to
the channel tables pk (channel_id).
my relationships are that the import tables channel is related to the channel
tables channel_name field, and the import tables supplier field is related to
the supplier tables supplier_name field. The channel is the new part to the
structure - so the supplier table already has records for each supplier
listed in the import table, but I need to update it to also have the
channel_id.
Hope that all makes sense.
If I was to write this for oracle, it would look something like this:
update supplier set channel_id = channel.channel_id
where channel.channel_name = import_mpl.channel
and import_mpl.supplier = supplier.name
TIA,
Corey
I have the following structure:
An import table (import_mpl - local access table) that has data loaded from
an Excel spreadsheet, and 2 lookup tables that are updated / appended to from
this imported data (Supplier & Channel - linked Oracle tables). I had
originally written an append query that worked for moving 'new' data into the
2 tables, but I had to change the structure and I'm now trying to change the
query as well.
So the import table has all of the data as text, but I want to move this data
into the 'base' table (also a linked Oracle table) and use references to the
lookup tables - common practice - but I am having some troubles with writing
the query. I am much better at writing SQL for Oracle, and that wouldn't be
a problem - but I can't seem to get the result I'm looking for in the Access
Query designer.
So I want to update all records in the supplier table, and add a reference to
the channel tables pk (channel_id).
my relationships are that the import tables channel is related to the channel
tables channel_name field, and the import tables supplier field is related to
the supplier tables supplier_name field. The channel is the new part to the
structure - so the supplier table already has records for each supplier
listed in the import table, but I need to update it to also have the
channel_id.
Hope that all makes sense.
If I was to write this for oracle, it would look something like this:
update supplier set channel_id = channel.channel_id
where channel.channel_name = import_mpl.channel
and import_mpl.supplier = supplier.name
TIA,
Corey