Use of ParameterRR
Use of ParameterRR
I have a simple report with just a master table. It has a column (Character field of size 4) which I would like to use in the report filter.____I want to create a ParameterRR field representing a user input value which the column will be compared to. i.e. select the record if cloumn is equal to my ParameterRR field. I construct the report filter accordingly.____I create the ParameterRR field with a default value, say "ABCD" (including double quotes as instructed). When I run the report, I enter an alternate value in the ParameterRR Value Entry Dialogue.____I then receive and ODBC-based error stating that I have an invalid column name equal to the new value that I enter for the ParamaterRR field.____Checking the SQL I see that the where clause has the form AAAA."bbbb" = "CCCC"__ where AAAA is the alias for my table__ bbbb is the table attribute__ CCCC is the value entered in the ParameterRR entry____If I change my report filter to have the column caompred to a constant value, the SQL has the form AAAA."bbbb" = ^CCCC^____It is obviously the double quotes around my test value that causes the SQL syntax problem.____What changes to my report definition can I make to be able to utilise the ParameterRR field for comparison?__
=> RE: Use of ParameterRR
Define the parameteRR field default value using single quotes rather than double quotes and things should work correctly.____Kathleen__R&R Support
==> RE: Use of ParameterRR
I changed the Default Value to a character value with single quotes. The SQL generated appears exactly the same with the compared value surrounded in double quotes. The same error ^Invalid Column Name^is reported.____I am using the Pervasive ODBC Engine Interface V7.94.251.02__
===> RE: Use of ParameterRR
Are you using the latest 10.1.003 release?____Kathleen__R&R Support
====> RE: Use of ParameterRR
Using R&R for Windows SQL Edition Version 10.0, Build 10.0.010
=====> RE: Use of ParameterRR
Try downloading the 10.0.012 update.____Kathleen__R&R Support
======> RE: Use of ParameterRR
Loaded 10.0.012 update. Appears to be working OK now.____Many thanks for your assistance__