Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing more than one parameter to a pass thru query -HELP

Status
Not open for further replies.

richmond88

IS-IT--Management
Sep 25, 2003
32
GB
Hi All,

I have an unbound mdb and I pull data down to a local table from an SQL 2000 Server - Set out below is how I do it.

At the moment the I only pass one parameter which is & Forms!frmCurrentUserDetails!txtCalendarYrID & "'", _


I now want to pass the pass thru query 2 parameters but i have struggled all day with it - any ideas would be gratefully received.

'Delete Current Data in Local Table tblStudentData
db.Execute "DELETE * FROM tblStudentData"

Call PassThroughFixup( _
"qselsptKS3StudentData", _
"EXEC procKS3StudentDataSelect '" & Forms!frmCurrentUserDetails!txtCalendarYrID & "'", _
Forms!frmlogin.ODBCConnect)
CurrentDb.Execute "qappKS3StudentDatatotblStudentData
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top