Using Foxpro DB and CR 2008. Two tables (Students and Payments) linked by Client_no.
Report has 4 parameters : ?Date Range, ?Amount, ?Last Name and ?Receipt Number
The goal of the report is to list student payment info based on the results of 3 different search possibilities:
1. by Date Range AND Amount....or
2. by all or starting letters of Last Name....or
3. by Receipt Number
I'm not retrieving any records when I search by Receipt Number even though I am entering valid numbers returned from the other 2 searches that work fine. Receipt Number is a STRING.
Here's my record selection formula:
{payments.account} = "4000" and
{students.program} in ["3M","6M","9M","MO","WR"] and
(({payments.date} = {?Date Range} and {payments.amount} = {?Amount} and {?Amount} <> 0.00)
or ({@Start Date Range} = date(9999,9,9) and {@End Date Range} = date(9999,9,9) and
{students.lname} startswith(UPPERCASE({?Last Name})) and trim({?Last Name}) <> ')
or ({@Start Date Range} = date(9999,9,9) and {@End Date Range} = date(9999,9,9) and
{payments.receiptno} = {?Receipt Number} and trim({?Receipt Number}) <> '))
Thanks for any help you can provide.
Report has 4 parameters : ?Date Range, ?Amount, ?Last Name and ?Receipt Number
The goal of the report is to list student payment info based on the results of 3 different search possibilities:
1. by Date Range AND Amount....or
2. by all or starting letters of Last Name....or
3. by Receipt Number
I'm not retrieving any records when I search by Receipt Number even though I am entering valid numbers returned from the other 2 searches that work fine. Receipt Number is a STRING.
Here's my record selection formula:
{payments.account} = "4000" and
{students.program} in ["3M","6M","9M","MO","WR"] and
(({payments.date} = {?Date Range} and {payments.amount} = {?Amount} and {?Amount} <> 0.00)
or ({@Start Date Range} = date(9999,9,9) and {@End Date Range} = date(9999,9,9) and
{students.lname} startswith(UPPERCASE({?Last Name})) and trim({?Last Name}) <> ')
or ({@Start Date Range} = date(9999,9,9) and {@End Date Range} = date(9999,9,9) and
{payments.receiptno} = {?Receipt Number} and trim({?Receipt Number}) <> '))
Thanks for any help you can provide.