1

I'm trying to change the below code to incorporate several selnames,167 & 789 both would use the same Query as below. I have tried several suggestions but no luck - any ideas?

Code:

IIf([selName]=167, DLookUp("[Desc]","[OptLQuery]","Index=selOptL"))
Shevy
  • 11
  • 2

1 Answers1

0

It should be:

IIf([selName]=167 OR [selName]=789, DLookUp("[Desc]","[OptLQuery]","Index=selOptL"))
Santosh
  • 12,175
  • 4
  • 41
  • 72
  • Hi ive tried the above but its not returning any results for option L re 167 or 789. Option L has different results for both selnames which when dlookup should populate in a description box. – Shevy Jan 23 '19 at 11:25
  • @Shevy Can you add screenshot of UI so that its more clear – Santosh Jan 23 '19 at 11:36