Hello! I'm currently creating an archaeological database. Two of my tables are Artifacts and SiteName. All of my sites in SiteName have an ID. I have a column in Artifacts for SiteID so what I want to do it link the Artifacts to the sites they belong to. I figured it would be something like: replace Artifacts.SiteID with SiteName.ID where Artifacts.Name is equal to SiteName.Name (i put the site names in the artifacts table as well as in the sitename table so as to keep everything in order). I've only just started using Access so its a big step for me just to understand what it is I have to do to accomplish this! Is there anyone who can show me how to do this in Access? Here is what I've tried: I ran an update query, selected the Artifacts table and the SiteID field in that table. It looks like this on my comp: Field: SiteID Table: Artifacts Update to: [SiteName].[ID] Criteria: [Artifacts].[Name]=[SiteName].[Name] Unfortunately this doesn't work and I don't understand why not. It seems to make sense to me. Is there anyone who can help me figure out what I'm doing wrong? I've been on so many Microsoft Access help websites but I still can't figure it out! Thanks so much for your time and help, Kaye
Re: Archaeological database - Need help with update query: Replace__with___where____= Instead of running an Update Query every time when you find a new atrifact, it will be a better method if you design two forms for both Site details and Artifacts Table and link them together. Do this as follows; Design the Main Form for the Site Table Design a Sub-Form in Datasheet View or Continuous Form for Artifacts Table Insert the Artifacts form as Sub-form into the Main Site Form Select the Sub-form and display its property Sheet (View- ->Properties) Enter the SiteID in the Link Master Field Property Enter the SiteID of the Artifacts Table into the Link Child Field Property and save the Form. Before you attempt to enter an Artifact record find the Site Name in the Main Form. then enter the Artificats details in the sub-form. The SiteId will be automatically recorded into the Artiifacts table.