G
Guest
I have a form that asks the user for 4 inputs. The user then hits OK which
does two things.
1. It takes the user inputs (txtName, txtManager, txtAddress, txtCode) and
puts them in a function called excelExport()
2. It runs the excelExport() function
In my excelExport function I change set all of the variables = varName,
varManager, varAddress, & varCode....respectively.
The first three variables I use within the excelExport function for misc.
things. The last variable (varCode) is the important one. Within my function
I call 24 queries (all different queries with one common field CODE). I want
to pass the varCode variable into the CODE field as the criteria for every
query. (I am not calling putting the actual SQL in my function, I am simply
calling the regular query)
Is there a way to get input from a form, pass it into a function and then
pass the variable into a query? I tried putting the following into the query
criteria:
excelExport(<<varCode>>) This does not work.
Help PLease
does two things.
1. It takes the user inputs (txtName, txtManager, txtAddress, txtCode) and
puts them in a function called excelExport()
2. It runs the excelExport() function
In my excelExport function I change set all of the variables = varName,
varManager, varAddress, & varCode....respectively.
The first three variables I use within the excelExport function for misc.
things. The last variable (varCode) is the important one. Within my function
I call 24 queries (all different queries with one common field CODE). I want
to pass the varCode variable into the CODE field as the criteria for every
query. (I am not calling putting the actual SQL in my function, I am simply
calling the regular query)
Is there a way to get input from a form, pass it into a function and then
pass the variable into a query? I tried putting the following into the query
criteria:
excelExport(<<varCode>>) This does not work.
Help PLease