Okay so,
I have a main form that has a combo box in which you select the company and division (one combo box, two columns) for which you want to enter data. The record source for the main form is the query that gives the two columns.
I then have a subform beneath and what I want to happen is that when the company is selected in the combo box, the subform automatically displays the company ID and division ID for this company/division and then the rest of the information can be typed in. I've tried a few different things and this is what I have so far.
SELECT [Bids and Proposals Register].[Company ID] FROM Bids and Proposals Register LEFT JOIN Company Query ON [Bids and Proposals Register].[Company ID] = [Company Query].[Company ID] WHERE (([Company Query].[Company Name]) = [Forms]![Bids and Proposals Register]![cboCompanyName]);
The subform is Bids and Proposal Register, and the Company Query is the Record Source of the main form. cboCompany Name is the drop down with the Company name and Company ID in it. I'm getting an error message that says "Syntax error in FROM clause"
Any help would be greatly appreciated
I have a main form that has a combo box in which you select the company and division (one combo box, two columns) for which you want to enter data. The record source for the main form is the query that gives the two columns.
I then have a subform beneath and what I want to happen is that when the company is selected in the combo box, the subform automatically displays the company ID and division ID for this company/division and then the rest of the information can be typed in. I've tried a few different things and this is what I have so far.
SELECT [Bids and Proposals Register].[Company ID] FROM Bids and Proposals Register LEFT JOIN Company Query ON [Bids and Proposals Register].[Company ID] = [Company Query].[Company ID] WHERE (([Company Query].[Company Name]) = [Forms]![Bids and Proposals Register]![cboCompanyName]);
The subform is Bids and Proposal Register, and the Company Query is the Record Source of the main form. cboCompany Name is the drop down with the Company name and Company ID in it. I'm getting an error message that says "Syntax error in FROM clause"
Any help would be greatly appreciated