CoolerWater
New Member
- Joined
- May 26, 2010
- Messages
- 2
I have an Excel spreadsheet that displays information from a data connection file. My boss wants me to find a way to put in parameters for the file so it doesn't search the entire database every time it's pulled up. He wants the users of the file to be prompted to enter the parameters that they choose.
Under Connection Properties on the definition tab, the buttons for "Edit Query" and "Parameters" are both grayed out, otherwise this is where I would go to set parameters. I do have access to modify the command text, which is set to SQL. Currently it reads:
/*PayablesTransactions Default**/
select
[Voucher Number],
[Vendor ID],
[Document Type],
[Document Date],
[Document Number],
[Current Trx Amount]
from PayablesTransactions
order by [Voucher Number]
Is there a way to enter parameters that the user is prompted to enter in this command text? If so, how do I do that?
Also, is there another way to enter parameters that will bypass the fact that the edit query and parameters buttons are both grayed out? I am not an advanced Excel user, and any help that could be offered would be greatly appreciated!
Under Connection Properties on the definition tab, the buttons for "Edit Query" and "Parameters" are both grayed out, otherwise this is where I would go to set parameters. I do have access to modify the command text, which is set to SQL. Currently it reads:
/*PayablesTransactions Default**/
select
[Voucher Number],
[Vendor ID],
[Document Type],
[Document Date],
[Document Number],
[Current Trx Amount]
from PayablesTransactions
order by [Voucher Number]
Is there a way to enter parameters that the user is prompted to enter in this command text? If so, how do I do that?
Also, is there another way to enter parameters that will bypass the fact that the edit query and parameters buttons are both grayed out? I am not an advanced Excel user, and any help that could be offered would be greatly appreciated!