Results 1 to 7 of 7

Thread: [RESOLVED] What the.. those characters!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Location
    Brunei
    Posts
    111

    Resolved [RESOLVED] What the.. those characters!

    take a look at the attachment. i wonder where did i gone wrong...
    Attached Images Attached Images  

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What the.. those characters!

    need to know more info:

    Where is the data coming from? how are you getting it?
    post code that loads those fields
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Location
    Brunei
    Posts
    111

    Re: What the.. those characters!

    The data comes from a table which consists of date fields.

    VB Code:
    1. Do Until rsKakitangan.EOF
    2.         dtpDateOfBirth.Value = rsKakitangan!BirthDate & ""
    3.         dtpDateOfIssueIC.Value = rsKakitangan!IC_IssueDate & ""
    4.         dtpDateOfIssueCitizenship.Value = rsKakitangan!CitizenCertDate & ""
    5.         dtpDateOfIssuePassport.Value = rsKakitangan!PassportIssueDate & ""
    6.         rsKakitangan.MoveNext
    7.     Loop
    8.  
    9.     rsKakitangan.Close
    10.     Set rsKakitangan = Nothing

    anything wrong there?

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: What the.. those characters!

    What is the format string you are using for those fields?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Location
    Brunei
    Posts
    111

    Re: What the.. those characters!

    it's short date format for all those fields.

  6. #6
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: What the.. those characters!

    what if you tried:

    dtpDateOfBirth.Value = Format(rsKakitangan!BirthDate,"mm/dd/yyyy")
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2006
    Location
    Brunei
    Posts
    111

    Re: What the.. those characters!

    im sorry to disappoint you guys. i just found that it was actually my staffs who entered invalid dates into the field such as 01/01/100 instead of 01/01/2001..

    sorry again, my bad

    case solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width