hi...i want to save the date from datepicker control to database access...
i have coded everything except datepicker...its my 1st time to use this control..
thank you...
hi...i want to save the date from datepicker control to database access...
i have coded everything except datepicker...its my 1st time to use this control..
thank you...
Are you facing any problem with the control ?
You simply need to take the value from the control, format is at per you database date format and store in DB.
Set rs = New ADODB.Recordset
If rs.State = 1 Then rs.Close
rs.Open "SELECT * FROM yourtable", cn, 3, 2
rs!date_time = DTPicker1.Value
rs.Update
Dim rs As new ADODB.Recordset
'ConnectionObject is a Connection Object
Set rs = Nothing
Set rs = New ADODB.Recordset
rs.Open "tblMyTable", ConnectionObject, adOpenStatic, adLockOptimistic
rs.Addnew
rs!dtmTransactionDate = Format(DTPicker1.Value,"DD/MM/YYYY")
rs.Update
In case of any issue please feel free to contact me
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.