Hopefully someone can help me out with this one...
All im trying to do is use the value of a textbox as an SQL query with the DoCmd.RunSQL but every time I try and get it to work, it throws up and error of "A RunSQL action requires an argument consisting of an SQL statement."
The value of the textbox is SELECT * FROM Work;
so it should return something.
Ive tried various properties of the textbox as well eg .Value and .Text but to no avail.
Can someone shed some light please...
Regards,
Mike
All im trying to do is use the value of a textbox as an SQL query with the DoCmd.RunSQL but every time I try and get it to work, it throws up and error of "A RunSQL action requires an argument consisting of an SQL statement."
The value of the textbox is SELECT * FROM Work;
so it should return something.
Ive tried various properties of the textbox as well eg .Value and .Text but to no avail.
Can someone shed some light please...
Regards,
Mike