I'm trying to create a pass-through query in Access2000 that will allow me to EXEC a stored procedure in SQL7.0 that accepts a parameter from a txt field on one of my forms.
In the pass-through query, I know that the syntax must be like this...
EXEC sp_GetData 'Variable'
The problem is I'd like to do something like this...
EXEC sp_GetData forms!frmSearch!txtCriteria.value
The variable is a VARCHAR(100) but I don't know how to reference it in the query!
Can this be done? If so, how???
In the pass-through query, I know that the syntax must be like this...
EXEC sp_GetData 'Variable'
The problem is I'd like to do something like this...
EXEC sp_GetData forms!frmSearch!txtCriteria.value
The variable is a VARCHAR(100) but I don't know how to reference it in the query!
Can this be done? If so, how???