I am trying to populate two fields based on another drop down field. I have amended some code downloaded from this site but am getting an syntax or paratheses error.
= SELECT([Oracle Codes].[GROUP], [Oracle Codes].[ID]) FROM ([Oracle Codes] WHERE([Oracle Codes].[DESCRIPTION])=([Forms]![Job Entry Form1]![Combo38]));
This is the code I downloaded:
SELECT[Suppleir Details].[DetailsId], [Suppleir Details].[Supplier Name] FROM [Suppleir Details] WHERE ((([Suppleir Details].[DetailsId])=[Forms]![Form1]![Combo0]));
A another note part of the download included this code: SELECT [Suppleir Details].[DetailsId], [Suppleir Details].[Supplier Code] FROM [Suppleir Details];
When I try the code in red above it returns the DetailsId in the combobox instead of the Supplier Code when it the example db it returns the Supplier Code.
Any assitance would be appreciated. It has been awhile since I worked in Access and it shows.
RGP