Kckronic21
Programmer
I have a problem with this query. I have the following in my sql statement:
SELECT [Employees].[Name], [Employees].[Position], [Employees].[City], [Employees].[State], [Employees].[Zip Code], [Employees].[Phone_Number] INTO [Forms]![City_Form]![City_txtbox]
FROM Employees
WHERE ((([Employees].[City])=[Forms]![City_Form]![City_txtbox]));
What I would like to do is to have the new table name change when the user chooses a different city. For example, If the user chooses "Charlotte" in the City_Form and runs the query, I want the new city to be named "Charlotte". Please tell me what I am doing wrong. Thanks!
SELECT [Employees].[Name], [Employees].[Position], [Employees].[City], [Employees].[State], [Employees].[Zip Code], [Employees].[Phone_Number] INTO [Forms]![City_Form]![City_txtbox]
FROM Employees
WHERE ((([Employees].[City])=[Forms]![City_Form]![City_txtbox]));
What I would like to do is to have the new table name change when the user chooses a different city. For example, If the user chooses "Charlotte" in the City_Form and runs the query, I want the new city to be named "Charlotte". Please tell me what I am doing wrong. Thanks!