UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> dlookup    
 
   
docmiller10
post May 26 2005, 02:41 PM
Post #1

UtterAccess Addict
Posts: 172



Is there any way I can use a list in the condition section of dlookup command? Example

dlookup("sum(total])","tbltest',"[task] in ('a','b','c')")
Go to the top of the page
 
+
Jerry Dennison
post May 26 2005, 02:48 PM
Post #2

Head Wizard
Posts: 14,857
From: South Carolina, USA



Not that I'm aware of. You can create a query with the criteria and use DLookUp() against it.
Go to the top of the page
 
+
wth54
post May 26 2005, 03:13 PM
Post #3

New Member
Posts: 7



You could also probably use 'Like' in the criteria section with a range of values or a characterl ist. I've used it from time to time in 2002. ex. "[task] like '[a-c]'"
Go to the top of the page
 
+
Jerry Dennison
post May 26 2005, 03:17 PM
Post #4

Head Wizard
Posts: 14,857
From: South Carolina, USA



I just thought of something. DLookUp() will only return a single record's worth of a value so what purpose could possibly be served by trying to have multiple criteria? What exactly are you trying to do?
Go to the top of the page
 
+
wth54
post May 27 2005, 08:09 AM
Post #5

New Member
Posts: 7



True. I've used it to just test for the existence of a record that matches a range of criteria before calling different subs rather than cobbling together a long list of "or" values. But I can't think of much you could use if for other than that.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 12:31 AM