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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I associate something not in a database field?

Status
Not open for further replies.

cardimom

MIS
Joined
Sep 18, 2001
Messages
34
Location
US
Hi,

Can I add something to my report that is not in the database. I have a computer system number and a user id and I want to add the users full name. I know that I will have to type the users names in. Can I associate the users name with the users id or some other database field so that it will stay with it when refreshed?

Thanks
Cardimom
 
You can create parameters that require user input and then place the created fields on the report anywhere you want.
 
You can also create a formula- an If...then...else would work. Something like this:

StringVar UserName:= UserID;
If UserName="A1" then "Fred" else
If UserName="A2" then "Henry" else
If UserName="A3" then "Mary"
 
Another approach is to use a User Function Library. In there you can do anything you can in VB include Windows API calls, retrieve from the Registry, open a txt file, etc.

Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top