I am using CR XI , Access 2000
I have a master table which stores all the codes and their descriptions.
MCodes (ID is the PK)
--------
ID Code_type Desc
1 Status Active
2 Status Inactive
3 ContactType Employee
4 ContactType Vendor
5 ContactType Temp
I need to display the above Description in the report.
For exmple
Name Status Type
John Smith Active Employee
John Doe Inactive Employee
Peter King Active Temp
I have stored in CONTACT Table
-------------------------------
Name StatusID, TypeID
John Smith 1 3
John Doe 2 3
Peter King 1 4
In my report selection formula I have
CONTACT.StatusID = MCODES.ID or
CONTACT.TypeID = MCODES.ID
I have following formula for Status and Type
@Status
if code_type = 'Status' then
Mcodes.Desc
@Type
if code_type = 'Type' then
Mcodes.Desc
But I just see only the names in the report
Name Status Type
John Smith
John Doe
Peter King
What am I doing wrong ?
I have a master table which stores all the codes and their descriptions.
MCodes (ID is the PK)
--------
ID Code_type Desc
1 Status Active
2 Status Inactive
3 ContactType Employee
4 ContactType Vendor
5 ContactType Temp
I need to display the above Description in the report.
For exmple
Name Status Type
John Smith Active Employee
John Doe Inactive Employee
Peter King Active Temp
I have stored in CONTACT Table
-------------------------------
Name StatusID, TypeID
John Smith 1 3
John Doe 2 3
Peter King 1 4
In my report selection formula I have
CONTACT.StatusID = MCODES.ID or
CONTACT.TypeID = MCODES.ID
I have following formula for Status and Type
@Status
if code_type = 'Status' then
Mcodes.Desc
@Type
if code_type = 'Type' then
Mcodes.Desc
But I just see only the names in the report
Name Status Type
John Smith
John Doe
Peter King
What am I doing wrong ?