Hi guys,
I'll try to expain the problem as clear as I can.
I have three (3) Parameters in a report. (Ex. Name, City and State).
And I'm using two (2) tables 1. EmpInfo and 2. Location
I'm getting the value for Name from E.EmpName &
for City & state from L.City & Location.State
(Linking these two tables with E.EmpNumber=L.EmpNumber)
-----------------------------------------------------------
The end user needs the following cases:
1. Select the values for all
(ie) ?Name = E.Name AND ?City = L.City AND ?State = L.State
2. Select the values for Name and City
(ie) ?Name = E.Name AND ?City = L.City
3. Select the values for Name and State
(ie) ?Name = E.Name AND ?State = L.State
-----------------------------------------------------------
2 and 3 are working good, but the first one is not working.
I'll past one of my formula :
if ({?Name = E.Name} AND {?City = L.City} AND {?State = L.State}) then
{?Name = E.Name} AND {?City = L.City} AND {?State = L.State}
else if ({?Name = E.Name} AND {?City = L.City})then
{?Name = E.Name} AND {?City = L.City}
else if ({?Name = E.Name} AND {?State = L.State})then
{?Name = E.Name} AND {?State = L.State}
I don't know! may be some problem in my logic or in my formula.
Please let me know if you people have any solutaion for this problem.
Thanks
MK
I'll try to expain the problem as clear as I can.
I have three (3) Parameters in a report. (Ex. Name, City and State).
And I'm using two (2) tables 1. EmpInfo and 2. Location
I'm getting the value for Name from E.EmpName &
for City & state from L.City & Location.State
(Linking these two tables with E.EmpNumber=L.EmpNumber)
-----------------------------------------------------------
The end user needs the following cases:
1. Select the values for all
(ie) ?Name = E.Name AND ?City = L.City AND ?State = L.State
2. Select the values for Name and City
(ie) ?Name = E.Name AND ?City = L.City
3. Select the values for Name and State
(ie) ?Name = E.Name AND ?State = L.State
-----------------------------------------------------------
2 and 3 are working good, but the first one is not working.
I'll past one of my formula :
if ({?Name = E.Name} AND {?City = L.City} AND {?State = L.State}) then
{?Name = E.Name} AND {?City = L.City} AND {?State = L.State}
else if ({?Name = E.Name} AND {?City = L.City})then
{?Name = E.Name} AND {?City = L.City}
else if ({?Name = E.Name} AND {?State = L.State})then
{?Name = E.Name} AND {?State = L.State}
I don't know! may be some problem in my logic or in my formula.
Please let me know if you people have any solutaion for this problem.
Thanks
MK