@dblookup problems

Hi folks,

I’m tying to use the @dblookup that will get a value in a view column (the 2nd one to be exact)…The view is in the current database and is hidden.

@DbLookup(“”:“NoCache”;“”:“”;“HolidayEntitlement”;“year_amounts”;“2”)

Basically I’m trying to get the view “HolidayEntitlement” (which is hidden) in the current database, the key is “year_amounts”, which is a computed field in the form where i am doing the lookup and the “2” is the 2nd column in the view that i want to retrieve…this is the error i am getting:

Entry not found in Index

Any help would be greatly appreciated, thanks…

Subject: @dblookup problems

Mickey,

Don;t put quites around the year_amounts and the 2

Mike

Subject: RE: @dblookup problems

Still no good Mike…the year_amounts is a number and not text, would this effect it! Plus the hidden view HolidayEntitlements, does it have to have the ( ) brackets around it whithin the “”…??

Subject: RE: @dblookup problems

The hidden view should have the brackets around it (although I thought you would probably have got the error - specified view does not exist… first ) - I would put the brackets around it

the year_amount should probably be @text(year_amount) - the key DOES have to be text

Also, make sure that the column you are looking at in the view is sorted. So many people get caught out by that. It can be sorted or categorised, but must be one

HTH

MIke

Subject: RE: @dblookup problems

Your not going to believe this but all three of them things was the problem…thanks for your time and help Mike! Go raibh maith agat!