SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old November 22nd, 2002, 12:42 AM
kami394 kami394 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 1 kami394 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > how i can enter date of birth in access record through ADO in VC++


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway