MY DB is in SQL. I am using Access as a frontend. Is it possible to take the value of a textbox, store it as a variable and pass it from Access to a Stored Procedure in SQL?
|
There may be a more direct method, but you could:
|
|||
|
You can use VBA to create a QueryDef that executes a pass-through query. For example, I have a database named [myDb] on my SQL Server, and I have created an ODBC System DSN named
...and a stored procedure named [getContact]
The following VBA code creates a pass-through query, executes the stored procedure with a parameter identifying the ID number to process, and saves the returned row in a Recordset:
|
|||
|