Update query not updateing Date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trevor2007
    New Member
    • Feb 2008
    • 68

    Update query not updateing Date

    Update query should update the date field in a table but does not, I try printing off with debug.print and no results
    Code:
    DoCmd.RunSQL "UPDATE IndividualSettingsTbl SET IndividualSettingsTbl.Date = #" & stDate & "# " & _
    "Where IndividualSettingsTbl.UserName = 'ZMoor';"
  • whitbacon
    New Member
    • Apr 2008
    • 8

    #2
    Try debuging as follows

    dim sql as string

    sql = "UPDATE IndividualSetti ngsTbl SET IndividualSetti ngsTbl.Date = #" & stDate & "# "
    sql = sql & "Where IndividualSetti ngsTbl.UserName = 'ZMoor';"
    debug.print sql

    docmd.runsql sql

    Comment

    Working...