Hi hope someone might be able to shed some light.
I have the following scenario wher eI am trying to query data based on values held in another table
Scenario
3 Tables and an SQL query.
Table 1 (Raw Data)
Field 1 - identifier key
Field 2 - Status (Data type = Text/Combo Box (Row Source = SELECT [CI - Status Values].Status FROM [CI - Status Values])
Field 3 - name
..and so on...
Table 2 (CI - Status Values)
Field 1 - Status (Data type = Text)
Table 3 (CI-SV Completed Values)
Field 1 - Completed Value (Data type = Text)
Objective:
Create an sql query to select all fields from [Raw Data] based on the values held in [CI-SV Coompleted Values].[Completed Value].
I know this is wrong, but my brain has turned to mush and can't for the life of me think where I am going wrong, any help would be appreciated:
SELECT [Raw data].*
FROM [Raw data]
WHERE ([Raw Data].[Status] = [CI-SV Completed Values].[Completed Value]
ORDER BY [Raw Data].[Name];
Paul helped me out with this with the following query:
SELECT [Raw data].*
FROM [Raw data] INNER JOIN [CI-SV Incomplete Values] ON [Raw Data].[Status] = [CI-SV Incomplete Values].[Incomplete Value]
WHERE [Raw data].[UCT member] = [Please enter your UCT name]
ORDER BY [Raw Data].[Name];
Problem I have know is that when I try to edit one of these records, either directly in the query OR through the form, access gives out something like "recordset is uneditable". I tried indexing the field in the incomplete values table (No dupliacted), which has worked and allows me to edit the record results of the query. The problem that I have now is that I can only update the values in Table1 - Field2 [Raw Data].[Status] to one of the values held in Table3- Field1 [CI-SV Incomplete Values].[Incomplete Value] and I need to be able to update it to any of the values held in Table2 - Field 1 [CI - Status Values].Status Value.
I hope that is a good enough explanation. Again, many thanks for any help.