I've tried asking a few questions about this topic to no answer. I've fought my way through the problem, discovering things for myself (the best way, I suppose) but I am now stuck. Here is my problem.
I have three fields in my Form: Firm, City, Address 1. The user chooses a Firm from a lookup list, then a City from a list that is formatted by which Firm is chosen, and then an Address from which City is chosen (by this time in the user's choices, there is only one choice). CompExperiment is my Form, FirmTable is my Table. My RowSources are the following:
Firm:
SELECT DISTINCT [FirmTable].[Firm] FROM [FirmTable]
City:
SELECT DISTINCTROW [FirmTable].[City] FROM FirmTable WHERE((([FirmTable].[Firm]) Like [Forms]![CompExperiment]![Firm]));
Address 1:
SELECT DISTINCTROW [FirmTable].[Address 1] FROM FirmTable WHERE((([FirmTable].[City]) Like [Forms]![CompExperiment]![City]));
This all works fine except when I move on to the next record. The user can choose a new Firm, but the City and Address 1 lookup fields conform to the previous Firm and City chosen. My City and Address 1 RowSources seem to only be reading from the first record entered. This must have something to do with PrimaryKey but I'm not sure what and I'm quite stuck. Can somebody please help me?
jgi.
I have three fields in my Form: Firm, City, Address 1. The user chooses a Firm from a lookup list, then a City from a list that is formatted by which Firm is chosen, and then an Address from which City is chosen (by this time in the user's choices, there is only one choice). CompExperiment is my Form, FirmTable is my Table. My RowSources are the following:
Firm:
SELECT DISTINCT [FirmTable].[Firm] FROM [FirmTable]
City:
SELECT DISTINCTROW [FirmTable].[City] FROM FirmTable WHERE((([FirmTable].[Firm]) Like [Forms]![CompExperiment]![Firm]));
Address 1:
SELECT DISTINCTROW [FirmTable].[Address 1] FROM FirmTable WHERE((([FirmTable].[City]) Like [Forms]![CompExperiment]![City]));
This all works fine except when I move on to the next record. The user can choose a new Firm, but the City and Address 1 lookup fields conform to the previous Firm and City chosen. My City and Address 1 RowSources seem to only be reading from the first record entered. This must have something to do with PrimaryKey but I'm not sure what and I'm quite stuck. Can somebody please help me?
jgi.