CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2002
    Location
    Australia
    Posts
    6

    Question Inserting sys date into Access database table

    Hi All,

    I have a problem with writing sys date into database. I am using Date() function in Vb.

    I created date field ad Date/Time type in database and format is short(means 04/11/2002). When I am trying to insert a record into database table I am getting a error.

    When I tried with out date field I was able to insert records into the database table.

    Could someone please help me out in this matter. Could U pl send exact syntax If U can

    Thnaks lot for UR help guys
    Ram

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477
    The date format doesn't depend on what you have given, but depends on the system format. The custom formatting is only used by Access.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

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

Featured