Results 1 to 2 of 2
  1. #1
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142

    Update Query

    Hello Everyone
    I am trying to update a table (specific column and row value) with the text box value in the form.

    Text box carries a date value.

    this is my query.

    sSQL = "update EmpToProj Set EndDate = " & enddate & " WHERE EmployeeID = " & nMid & " AND ProjectID = " & nWid & ";"

    The bold value is my textbox value.
    Query runs.
    But the updated value is this: 12:00:00 AM



    I think there is a syntax error.
    Not sure how to solve that.


    Can anyone help me with this.

  2. #2
    Shamli is offline Competent Performer
    Windows 7 64bit Access 2013 64bit
    Join Date
    Jul 2018
    Location
    California
    Posts
    142
    Sorry. Solved it. Just noticed that I didn't set the text box as enddate in the query
    Quote Originally Posted by Shamli View Post
    Hello Everyone
    I am trying to update a table (specific column and row value) with the text box value in the form.

    Text box carries a date value.

    this is my query.

    sSQL = "update EmpToProj Set EndDate = " & enddate & " WHERE EmployeeID = " & nMid & " AND ProjectID = " & nWid & ";"

    The bold value is my textbox value.
    Query runs.
    But the updated value is this: 12:00:00 AM

    I think there is a syntax error.
    Not sure how to solve that.


    Can anyone help me with this.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2018, 11:44 AM
  2. Replies: 2
    Last Post: 08-03-2017, 04:58 AM
  3. Replies: 1
    Last Post: 10-27-2016, 12:14 PM
  4. Replies: 7
    Last Post: 08-26-2013, 06:05 AM
  5. Replies: 2
    Last Post: 08-30-2012, 07:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums