Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace field number with literal value 1

Status
Not open for further replies.

sgd3476

Programmer
Mar 3, 2003
37
US
In my report I have a client account number, but am unable to pull in the name from the db. How can I replace the client number with name?
 
Use a subreport from the customer table linked to the customer Id in the main report. Slow, but it works.

Lisa
 
I'm sorry, I was not clear. The database does not contain a field for the client name, just the number.
 
Then you have to create a formula something like:

if {table.custId} = 1 then "Company One"
else if {table.custId} = 2 then "Company Two"
else if ...
else "Unknown"


Lisa
 
Sounds like a good Case candidate:

CASE Table.AcctNum
WHEN 1 THEN "Fishlips Inc."
WHEN 2 THEN "Some other firm"
...
ELSE "Unknown"
END
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top