|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
how i can enter date of birth in access record through ADO in VC++
hello.
i have made a access table inwhich field is Date of data type "Date/Time" and input mask "99/99/00;0" i want to access that record through ADO. A generic class with Variable DATE m_dtBirthdate; ULONG lBirthdateStatus; BEGIN_ADO_BINDING(CCustomRs) ADO_FIXED_LENGTH_ENTRY(3,adDate,m_dtBirthdate,lBir thdateStatus,TRUE) END_ADO_BINDING() in VIEW class if (((DATE)m_oledtBirthdate) != pRs->m_dtBirthdate) pRs->m_dtBirthdate = (DATE)m_oledtBirthdate; here m_oledtBirthdate is form variable for edit box. Problem is:: when i add new record then bydefault/changed value (1/1/1970 5:00:00 AM)can not enter into the table field. OnAdd function::when i need to add new record. i have declare COleDateTime dtBlank; m_rsRecSet.m_dtBirthdate = (DATE)dtBlank; Can any help me. Advance Thanks. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > how i can enter date of birth in access record through ADO in VC++ |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|