Hello,
I have been searching (a lot!) to find a solution to being able to prompt for parameters for a SQL Pass Through query from Access to SQL Server. I found examples using stored procedures on the server but I do not have write access to the server in this case. I don't have create procedure permission either.
Many examples I've seen use forms but I have not found an example where I could prompt for a data range (start and end dates) and build them into the query before I pass the query to Sql Server.
I was able to set up the ODBC connection and run a query without parameters. I gather from my two day search that many have this question. I was disappointed that every answer I looked at either involved a stored procedure on the server (which I cannot do due to lack of privileges) or used forms but not in a way that seemed to apply to my situation.
Does anyone have a clear example? I don't have much experience with VBA yet but am trying to learn.
Thanks in advance for your time and help!
I have been searching (a lot!) to find a solution to being able to prompt for parameters for a SQL Pass Through query from Access to SQL Server. I found examples using stored procedures on the server but I do not have write access to the server in this case. I don't have create procedure permission either.
Many examples I've seen use forms but I have not found an example where I could prompt for a data range (start and end dates) and build them into the query before I pass the query to Sql Server.
I was able to set up the ODBC connection and run a query without parameters. I gather from my two day search that many have this question. I was disappointed that every answer I looked at either involved a stored procedure on the server (which I cannot do due to lack of privileges) or used forms but not in a way that seemed to apply to my situation.
Does anyone have a clear example? I don't have much experience with VBA yet but am trying to learn.
Thanks in advance for your time and help!