query with parameters

The_Vicar75

Registered User.
Local time
Today, 21:51
Joined
Apr 22, 2008
Messages
13
Hi,

I've got a form in access.

I'd like to, in VBA, count rows in a query between 2 dates (parameters), and put the countings in textboxes on the form.

what's the best way to do so?


Greets,
V.
 
Not sure we have enough info to determine the best way, but one way:

Me.TextboxName = DCount( "*", "QueryName", "DateField Between #1/1/08# And #1/31/08#")
 

Users who are viewing this thread

Back
Top Bottom