D
die_laffin via AccessMonster.com
Hi
I'm in the process of trying to update a database. At present they are
storing the name of the Division selected form a table (Divisions) into
another table (Main). I'm trying to change this so that only the Division ID
is stored in the 2nd/Main table.
But when looking at or updating a record it shows the wrong value
eg:
Division Table:
ID Value
5 Balliol
Main Table:
Division
5
When I look at the record in a update form the combobox is set to:
ID Value
6 Cumbria
The combobox is based on:
Control Source: (Main Table) Division
Row Source Type: Table/Query
Bound Column: 0
SQL is:
SELECT DISTINCT Divisions.Division, Divisions.ID
FROM Divisions INNER JOIN Main ON Divisions.ID = Main.Division
WHERE (((Divisions.ID)=[Main].[Division]));
Any help would be appreciated
Thanks
die_laffin
I'm in the process of trying to update a database. At present they are
storing the name of the Division selected form a table (Divisions) into
another table (Main). I'm trying to change this so that only the Division ID
is stored in the 2nd/Main table.
But when looking at or updating a record it shows the wrong value
eg:
Division Table:
ID Value
5 Balliol
Main Table:
Division
5
When I look at the record in a update form the combobox is set to:
ID Value
6 Cumbria
The combobox is based on:
Control Source: (Main Table) Division
Row Source Type: Table/Query
Bound Column: 0
SQL is:
SELECT DISTINCT Divisions.Division, Divisions.ID
FROM Divisions INNER JOIN Main ON Divisions.ID = Main.Division
WHERE (((Divisions.ID)=[Main].[Division]));
Any help would be appreciated
Thanks
die_laffin