Strange Behaviour of @Dblookup

I have a field on a form that does a lookup to another database based on a value entered elsewhere on the form (but above the field in question). The field has “refresh choices on document refresh” selected.

This is the lookup code:

choices := @DbLookup(“”:“NoCache”;Server:LookupDatabase;“Programs”;Program;4);

Now thats all fine and dandy and works a treat UNLESS the icon for the lookup database is NOT on the workspace of the client doing the lookup. In that case an “Entry not found in Index” error occurs.

The freaky thing is that other lookups on the same form to the lookup database still work. It’s not an isolated thing as I can replicate it on any client by removing the icon for the lookups database.

Why would it be necessay to have the icon of the refered to database on the workspace ?

Subject: Strange Behaviour of @Dblookup

Kelvin,

Might be a red-herring/of no consequence, but my first thought was…does the database you are @dblookup-ing have a default view?? I know that this can screw up doclinks and may cause the same problem with @dblookup.

Like I said, just a thought

Mike

Subject: RE: Strange Behaviour of @Dblookup

Unfortunately it does have a default view. It didn’t have a default form however that didn’t fix the issue. Was worth a look, should have though of it myself.