Updating information in a table

From: Jonathan Wells (joeblogg_at_email.com)
Date: 02/26/05


Date: Sun, 27 Feb 2005 09:41:45 +1030

Hi I'm desperately trying to workout how I can fix this. Here is my problem.
I have a product table which has a lot of products in it with custom fields.
The custom fields are stored in a seperate table. I copied and pasted all
the
products in the product table so I could sort them by 'brand' and 'product
type'. It a messy solution and a lot of redundant data but its the only way
I
can work around the ecommerce program which only assigns a product to one
folder.

Now in the custom fields table none of the custom fields are linked to the
duplicated products because of their new product ids. Now rather than
reassigning all the custom fields which will take forever is there any way I
can do a query to match them up again.

Here is an example of my situation.

Here are my tables:

Product table
prod Id: 1 name: protein bar

Customfields linking table
CustomfieldID: 1 productID:1

Customfield
Customfield ID: 1 Customfield description: Flavour Valuelist: Choc, Caramel

then I copy the records in the product table
i.e. prod Id: 1 name: protein bar
prod Id: 2 name: protein bar

And of course that second one now doesn't have the custom field attached. So
is there a query that can append this data into the product table.

Thanks in advance for your help



Relevant Pages

  • Re: Updating information in a table
    ... with an inner join between their "Prod Id" fields. ... > The custom fields are stored in a seperate table. ... It a messy solution and a lot of redundant data but its the only ... > can do a query to match them up again. ...
    (microsoft.public.access.queries)
  • Re: WebDAV SQL conditional on custom field?
    ... This is generally the way Boolean's are queried you may find the query ... My custom properties are boolean, so I guess I'm exempt from needing to ... boolean custom fields to narrow the resultset by using them in the ... For example, if I have a custom field named "foo", how do I do ...
    (microsoft.public.exchange.development)
  • Bypassing the custom field problem from Outlook to Access
    ... I have created custom fields in outlook and am trying to link them ... decoding the body content in access using a query. ... the first query would contain the first value and so on. ...
    (microsoft.public.access.externaldata)
  • Please Help: Querying same field several times for a count in QBE
    ... The .csv that is required contains 20 fields and for the most part ... these fields can be added to the query by double clicking. ... then by use of REPORTS somehow add custom fields to the report and say ...
    (microsoft.public.access.queries)
  • Re: Please Help: Querying same field several times for a count in QBE
    ... Access MVP 2002-2005, 2007 ... these fields can be added to the query by double clicking. ... then by use of REPORTS somehow add custom fields to the report and say ... additional criteria to the IIf condition or will I have to relook at ...
    (microsoft.public.access.queries)