Link to home
Get AccessLog in
Avatar of LukeB
LukeBFlag for Australia

asked on

set the date & time picker to now()?



how do I set the date & time picker to now()? I looked at Q_20947885 but when I do

   DTPicker1.Value = DateAdd("yyyy", -1, Now())
or
      DTPicker1.Value = Now())

I get run time error 2763 objec is read only?

Avatar of Dabas
Dabas
Flag of Australia image

Hi LukeB,
Is this in MSAccess, VB6, VB.NET?

I have tried similar code to yours (DTPicker1.Value = Now()) and have no problem at all

Dabas
Avatar of LukeB

ASKER

sorry MSAccess
ASKER CERTIFIED SOLUTION
Avatar of Hypnochu
Hypnochu

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
Avatar of LukeB

ASKER

duh .... thanks guys, I had the date picker locked