This Month Date Range Button (1 Viewer)

mugen_rsx

Registered User.
Local time
Today, 08:33
Joined
Dec 1, 2004
Messages
20
Is it possible that I create a button and after I click it, it will show only "This Month" or "Last Month" Database? If today is Dec 14th, I click on "this month" button and it will show Dec 1-14th data.

Is it better to work this on Query? Sorry I am a newbie, still couldn't know when to use Query!

I have read some posts and they only talk about typing 2 specific dates! Please help!!
 

MStef

Registered User.
Local time
Today, 16:33
Joined
Oct 28, 2004
Messages
2,251
:eek: Hello bradcccs!
Look at "DemoThisMonthA97.mdb"
(MStef alias Štef)
 

Attachments

  • DemoThisMonthA97.zip
    79.2 KB · Views: 133

MStef

Registered User.
Local time
Today, 16:33
Joined
Oct 28, 2004
Messages
2,251
:) My mistake again it's for mugen-rsx.
 

Christopherusly

Village Idiot.
Local time
Today, 16:33
Joined
Jan 16, 2005
Messages
81
Runtime error "13" - Type mis match when running your sample database

Function FirstOfNextMonth(datAny)
' Returns the first day of the month following the specified month.
FirstOfNextMonth = DateSerial(Year(datAny), Month(datAny) + 1, 1)
End Function

Sadly i do not know why, any suggestions ? :confused:
 

MStef

Registered User.
Local time
Today, 16:33
Joined
Oct 28, 2004
Messages
2,251
:rolleyes: Hello Christopherusly!
I suppose you call function with empti field "datAny".
You have to fill it with date before.
 

Users who are viewing this thread

Top Bottom