I have a 'dynamic' form which can be linked to 1 of 3 tables, the active one being chosen from a combo cboSourceChoice. The tables are called NPD,NPDy,NPDz.
On the form I have another combo Called Combo2, which I use to select the record to display in the form.
In the Row Source I am trying to enter a dynamic sql statement which points to the table selected by combo cboSourceChoice. So far I have tried (amongst others) sql as follows:-
SELECT Fullname FROM " & [Forms].[NPD All Parts SubEdit NEW].cboSourceChoice & ";
..... this gives Error: Invalid bracketing of Name;.
So I tried..
SELECT Fullname FROM " & cboSourceChoice & ";
... and I get Error: Incomplete query clause..
Any ideas (or a donation of hair folicles) gratefully recieved.
On the form I have another combo Called Combo2, which I use to select the record to display in the form.
In the Row Source I am trying to enter a dynamic sql statement which points to the table selected by combo cboSourceChoice. So far I have tried (amongst others) sql as follows:-
SELECT Fullname FROM " & [Forms].[NPD All Parts SubEdit NEW].cboSourceChoice & ";
..... this gives Error: Invalid bracketing of Name;.
So I tried..
SELECT Fullname FROM " & cboSourceChoice & ";
... and I get Error: Incomplete query clause..
Any ideas (or a donation of hair folicles) gratefully recieved.