Generate Query Definition

jeudi 19 février 2015

Hoping you can help.



I'd like to use DLookup, DCount etc. on a SQL string held within the VBA code itself. Something like:



stSQL = "SELECT * From Contacts"



MsgBox DCount("Contact_ID", stSQL, "Deceased = False")




I'm trying to avoid creating lots of queries.

Generate Query Definition

0 commentaires:

Enregistrer un commentaire

Labels