Hi,
I use the line of code below to get data in unbound textboxes on my form.
Me.txttotalcustomers = DCount("ContactID", "Contacts")
This works well, but now I would like to go a step further and extract this same info on the same table, but only for the last 30 days, then 60 days, then 90 days.
Basically I am trying to see if something along the lines of this can work:
Me.txtTotalIssue30 = DCount("callid", "calls", "[Call Date]>(Now-30)")
Can this be done or am I going to have to resort to queries?
Thanks
mafhobb
I use the line of code below to get data in unbound textboxes on my form.
Me.txttotalcustomers = DCount("ContactID", "Contacts")
This works well, but now I would like to go a step further and extract this same info on the same table, but only for the last 30 days, then 60 days, then 90 days.
Basically I am trying to see if something along the lines of this can work:
Me.txtTotalIssue30 = DCount("callid", "calls", "[Call Date]>(Now-30)")
Can this be done or am I going to have to resort to queries?
Thanks
mafhobb
Last edited: