Date Picker (1 Viewer)

isladogs

MVP / VIP
Local time
Today, 22:45
Joined
Jan 14, 2017
Messages
18,186
Posts crossed

The left one
That one is Sun to Sat on my PC. I need to check why the days are shifted by one on your machine.

Your formatting code is very simple and it works. I had tried something more convoluted and it didn't work
I've changed the out of months days from dark red to dark grey

NOTE: Its a deliberate decision to only show the required number of weeks for each month but, of course, you are free to modify as you wish.
However, I'm concerned that the days differ on your machine and mine. Will investigate when I have time
 
Last edited:

KitaYama

Well-known member
Local time
Tomorrow, 07:45
Joined
Jan 6, 2022
Messages
1,489
Last edited:

isladogs

MVP / VIP
Local time
Today, 22:45
Joined
Jan 14, 2017
Messages
18,186
Oops. My error.
I've just discovered the problem in v2206. I had hard coded vbSunday.
In fact I only need one version using this approach

Change vbSunday to vbUseSystemDayOfWeek in DrawDateButtons

I'm going to do more testing and will upload a fixed version later.

However, we've hijacked this thread. Please can any further exchange be done via private message or email.
 

isladogs

MVP / VIP
Local time
Today, 22:45
Joined
Jan 14, 2017
Messages
18,186
I've now fixed the errors in the versions originally uploaded to post #11 and added extra functionality

The main changes in version 1.4 include:
a) First day of week now automatically assigned according to Windows settings - no need for multiple versions
b) Out of month days added in dark grey
c) Following month days only shown if in same week as last day of current month
d) Selecting an out of month day assigns the correct month automatically. Also tested successfully for dates selected in previous year or following year
e) Clicking the Today button resets the calendar to the current month/year & highlights current date ready for selection to confirm
f) Added Mendip Data Systems link to date picker form as suggested by @KitaYama

I will also post this version to sample databases and my website later

Many thanks to @KitaYama for suggesting several additional features & for testing the new version
 

Attachments

  • DatePicker_v1.4.zip
    69.8 KB · Views: 147

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 22:45
Joined
Jul 9, 2003
Messages
16,245
We prefer to be able to see and select dates from the end of previous month or the first days of next month.
So do I...
I have that in my original date picker:-


The latest version is here below, and shows 3 months. It's based on the single month version, so can be a tad slow to load...

 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:45
Joined
May 7, 2009
Messages
19,169
in UtterAccess there are lots also.
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 18:45
Joined
May 21, 2018
Messages
8,463
I tried to put them all into one place.

I updated that thread with @isladogs and @arnelgp current datepicker.
 
Last edited:

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 22:45
Joined
Jul 9, 2003
Messages
16,245
I didn't know you have a date picker too.
I'll check it out.

Good to know!
All my date pickers run on my own code written from scratch.
I keep them behind a pay wall. You can circumnavigate the pay wall with coupon codes:-

The first Nifty Date Picker:-

Nifty Date Picker - MS Access​

Free with this coupon code:- bqu488f

Nifty Date Picker - Upgrade 3Month Display​

Free with this coupon code:- dp02rq1

Nifty Date Picker - For "ALL" Versions of MS Access​

This is a FREE "build it yourself" Date Picker


The VBA Code is Here:-
 

Renny09

New member
Local time
Tomorrow, 00:45
Joined
Oct 12, 2022
Messages
5
Thanks for sharing the coupons. they were useful to me. I'want to add that recently I fount the info how to create this coupons and discounts without great knowledge. I think it's worth to see.
 

Users who are viewing this thread

Top Bottom