G
Guest
I currently have 20 different queries that all have 1 field called
"destination" in the criteria of each query I have each one calling a
function destInput(). This function simply prompts the user to input a
destination and then takes input writes it to the criteria to return the
specific results that the user entered.
Here is the code for destInput()
Public Function destInput() As String
If strDestination = "" Then
destInput = InputBox("Enter Destination:")
Else
destInput = strDestination
End If
End Function
This works fine. Now, I have another function excelExport() that exports
each query to excel. In this function it calls each query 1 by 1 and thus
each time it calls a query it prompts for the user to input a destination.
This is the problem.
I don't want the user to have to type in the destination more than once. I
would like it if my function could ask for the user to input the destination
once and then write that to each query and then export to excel. Like I said,
I have parts of this and write now it works, its just that I have to sit
there and reinput the same thing over and over.
Any ideas?
"destination" in the criteria of each query I have each one calling a
function destInput(). This function simply prompts the user to input a
destination and then takes input writes it to the criteria to return the
specific results that the user entered.
Here is the code for destInput()
Public Function destInput() As String
If strDestination = "" Then
destInput = InputBox("Enter Destination:")
Else
destInput = strDestination
End If
End Function
This works fine. Now, I have another function excelExport() that exports
each query to excel. In this function it calls each query 1 by 1 and thus
each time it calls a query it prompts for the user to input a destination.
This is the problem.
I don't want the user to have to type in the destination more than once. I
would like it if my function could ask for the user to input the destination
once and then write that to each query and then export to excel. Like I said,
I have parts of this and write now it works, its just that I have to sit
there and reinput the same thing over and over.
Any ideas?