Hello I have a line of code which set the table name to be used as below:
strSQL = "SELECT * FROM [1250]"
That runs fine and returns all I need from table 1250
If however I have a textbox on the form called texttable which contains the value 1250 and change my code to:
strSQL = "SELECT * FROM & Me.[texttable]" it errors.
What is wrong here and what would make things work?
Many thanks Mark
strSQL = "SELECT * FROM [1250]"
That runs fine and returns all I need from table 1250
If however I have a textbox on the form called texttable which contains the value 1250 and change my code to:
strSQL = "SELECT * FROM & Me.[texttable]" it errors.
What is wrong here and what would make things work?
Many thanks Mark