DateTime picker as input (1 Viewer)

mfaisal.ce

Member
Local time
Today, 02:02
Joined
Dec 21, 2020
Messages
76
Dears,

I want the user to input date by datetime picker .... kindly guide me how i can do that,

example

input("Enter Date Here")

When i use the above code, prompt comes for getting the value but i need datetime picker, like a normal textbox in runtime mode...

regards,
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 16:02
Joined
Oct 29, 2018
Messages
21,447
You can use a popup calendar.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:02
Joined
May 7, 2009
Messages
19,227
there is already a built-in datepicker in access.
 

mfaisal.ce

Member
Local time
Today, 02:02
Joined
Dec 21, 2020
Messages
76
this is code, how i can use

DoCmd.OpenReport ReportName:="RPTSheet_Daily", View:=acViewPreview, wherecondition:="[Dated]=#" & Format(InputBox("Enter Date"), "yyyy-mm-dd") & "#"

Where i can use datetime picker......
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 00:02
Joined
Jul 9, 2003
Messages
16,269
If you want a separate pop-up form which operates as a datepicker, have a look at my web site here where I provide a free and paid for version, pays your money and takes your choice... Something like that!

Nifty Date Picker

 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 19:02
Joined
May 21, 2018
Messages
8,523
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 07:02
Joined
May 7, 2009
Messages
19,227
yes, you can use form in the Open event of your report.
on the demo, open the report.
 

Attachments

  • reportWithDate.accdb
    640 KB · Views: 387

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 19:02
Joined
Feb 19, 2002
Messages
43,203
Is there some reason you can't use a control on a form? We can't tell by the context of the question what you are trying to do. For example, if you are running a report, add a control to the form to capture the date. In the click event of the run report button, make sure the control contains a date, then run the report or set focus to the control and prompt the user to try again.
 

Users who are viewing this thread

Top Bottom