Hi All,
I am creating a DCount statement with rather complex criteria. (Access03) The simple version below works if I use a hard coded date but I am having trouble using the VBA variable dtDateBegin.
DCount("importid", "tblimports", ("dateimported >= #dtDateBegin# "))
DCount("importid", "tblimports", ("dateimported >= #7/17/2006 8:22:47 AM# "))
I have tried several concatenations, with and without # enclosures.
This is probably pretty simple, thanks for any clues.
alr
_____________________________________
If a large part of intelligence is the ability to generalize, it is ironic that a large part of what we call wisdom is the ability not to generalize.
I am creating a DCount statement with rather complex criteria. (Access03) The simple version below works if I use a hard coded date but I am having trouble using the VBA variable dtDateBegin.
DCount("importid", "tblimports", ("dateimported >= #dtDateBegin# "))
DCount("importid", "tblimports", ("dateimported >= #7/17/2006 8:22:47 AM# "))
I have tried several concatenations, with and without # enclosures.
This is probably pretty simple, thanks for any clues.
alr
_____________________________________
If a large part of intelligence is the ability to generalize, it is ironic that a large part of what we call wisdom is the ability not to generalize.