@db command

Hi,

I have a field CC with a value selected from a View (i.e ‘908’). Now, what I want to do is get the description of that CC Number and place it into a computed field next to the CC field.

Hope you can help!! Thanks

Subject: @db command

Danny,

You will need to use @DbLookup

@DbLookup(“”:“NoCache”;“”;name of the view;CC;column number to return)

HTH

Mike

Subject: RE: @db command

Thanks for your suggestion.

I am getting the following error message

“Field: ‘Field Name’: Entry Not Found in Index”

Code used:

@DbLookup(“”:“NoCache”;“”;“Cost Centre”;“904”;2)

P.S - I have hard coded the 904 for testing purposes

Thanks

Subject: RE: @db command

Danny,

Is “904” definately an entry in the “Cost Centre” view?

And is the first column of the view sorted??

Mike

Subject: RE: @db command

There we go, I now class myself as stupid, I didn’t sort the view.

Thanks again.

Subject: RE: @db command

Danny,

I have done that a few thousand times myself!!!

Mike

Subject: RE: @db command

Excellent made me very a bit better!! lol