Hello,
I'm making a fairly complex application. At some point, I open a querydef and cycle through its parameters to prompt the user to enter it.
Then, according to the type of the parameter, I will put tokens around it (" for string, # for dates, nothing for numbers), and put the parameters in another SQL with the replace() function.
It's pretty convoluted so let's keep it at that. My issue is that for a "test query", I put a random parameter on a random field (a number field, long integer) but the querydef.parameters(index).type is dbText
I figured out that I can force the type by putting it in the query's parameter button in the ribbon on top in design mode, but no user is ever going to do that when making their queries.
Is this a bug? Is there an easy workaround?
Thanks
I'm making a fairly complex application. At some point, I open a querydef and cycle through its parameters to prompt the user to enter it.
Then, according to the type of the parameter, I will put tokens around it (" for string, # for dates, nothing for numbers), and put the parameters in another SQL with the replace() function.
It's pretty convoluted so let's keep it at that. My issue is that for a "test query", I put a random parameter on a random field (a number field, long integer) but the querydef.parameters(index).type is dbText
I figured out that I can force the type by putting it in the query's parameter button in the ribbon on top in design mode, but no user is ever going to do that when making their queries.
Is this a bug? Is there an easy workaround?
Thanks