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!

@dblookup using two keywords

Status
Not open for further replies.

philip2000

Programmer
Dec 25, 2003
3
US
Hi,
can i use dblookup using two keywords? for example:
value := @DbLookup("":"NoCache";"":"Names.nsf" ; "People" ; "Mighty" and "Young" ; "FullName"); @If(@IsError(value); "Not Available"; value)

when i use one keyword, it works fine but when i try two or more, it fails.

Thanks
 
You can only define on key for the @DBLookup formula.

You can always do this another way if the two keywords are in the same document that you are looking for. Just create a view that has the value of the first sorted column as:

key1+key2

Your column would contain "MightyYoung"

This will join the two keys together and you would specify the joined keys as your "one" key in the @DBLookup formula to lookup the column of your new view

@DbLookup("":"NoCache";"":"Names.nsf" ; "People" ; "MightyYoung" ; "FullName")

If you are trying to return two documents you won't be able to do it via @DBLookup and you would need to do something in LotusScript.

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top