How are ya Roy . . . I don't know about anyone else, but its always an honor to have you stop by! . . . . . I'll do the best I can to explain . . . . .
For all your testing, you forgot to include my DQ constant! Which if ya tried it, you would see it would pass ([purple]already done that[/purple])!
Also, for all the ADO/DAO functionality you wish to prove out, you don't realize you've proven my point. ADO/DAO functionality, has nothing to do with [blue]Embedding Strings In SQL[/blue].
Albeit, I'm not an ADO guru yet (taking classes for the past six months), but if you parse through the code you gave me, you'll find when it comes to assigning the [blue]sCrit[/blue] criteria string, there's no ADO/DAO functionality involved. Your simply trying to put the criteria in an format acceptable to the [blue]Jet[/blue] for parsing. And this is the hub of it all. [purple]
The criteria string has to be in the proper format for parsing by the Jet.[/purple] This is no different than designing a query in design view and then switching to SQL view. SQL view shows the query in its proper format, since [purple]
Access does the embedding for you![/purple]. As an SQL guru (I believe), this is the reason I no longer design SQL. I make a query to do what I want, and just copy the SQL if I need it! . . . . . I'm sure you've done the same.
You mentioned the use of the hash(#) mark in ADO. I'm a little confused here because to my knowledge,ADO/DAO aside, the hash marks are used to signify dates to the Jet. If I'm wrong, please correct me!
To summarize: The DQ constant works as far as embedding strings in SQL is concerned. All the other variations are not a matter of my concern in this thread. The DQ constant is! Its simply my way of making it a little easier.
So . . . . what ya think Roy!
See Ya! . . . . . .