date formats

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TimTDP
    New Member
    • Oct 2009
    • 1

    date formats

    In VBA with Access 2000 I have string called dteNew. The value displayed for dteNew is 03/11/2009
    However when I write it to a field it is displayed in the table as 30/12/1899.
    If I hover the mouse over the field in the table, the 30/12/1899 changes to 12:00:12am!

    how do I write the value 03/11/2009 to the table? I have tried Format(dteNew , "dd/mm/yyyy") but this does not work

    thanks in advance
  • vb5prgrmr
    Recognized Expert Contributor
    • Oct 2009
    • 305

    #2
    try surrounding the date with either single ticks " ' " or the pound symbol #



    Good Luck

    Comment

    Working...