Hi,
I am trying to update fields in a table. everything get updated correctly except the field [Modify By]
DoCmd.RunSQL "UPDATE DOP_new SET [Modify BY] = '" & Itm_Logged_by & "' where [TrackingID] = " & Me![TrackingID] & ";"
DoCmd.RunSQL "Update DOP_new SET [Modify BY] = '" & Itm_Logged_by & "', [Reference #] = '" & Itm_reference & "', [TD Account #] = " & Itm_TD_Number_No & ", [Department] = '" & Itm_from_Department & "', [Barcode #] = " & Itm_BarCode & ", [Client Name] = '" & Itm_ClientName & "', [Deal Name] = '" & Itm_Deal_Name_Label & "' , [Document Date] = #" & Itm_Document_Date & "#, [Document Type] = '" & Itm_Document_Type & "', [Additional Comments] = '" & Itm_Additional_Commitments & "', [Number of Documents] = " & Itm_No_of_Document & ", [Box #]=" & Itm_Box_no & ", [Of #] = " & Itm_of_No & " WHERE [TrackingID]= " & Me![TrackingID] & ";"
the first statement doesn't update [Modify By] in the correct row #
I notice that the ME![TrackingID] in the first statemtn returns 1.. (please note, the ME![TrackingID] should be 71)
the second statement update everything in the correct row except the [Modify BY] doesn't get updated.
please advise.
Alice
I am trying to update fields in a table. everything get updated correctly except the field [Modify By]
DoCmd.RunSQL "UPDATE DOP_new SET [Modify BY] = '" & Itm_Logged_by & "' where [TrackingID] = " & Me![TrackingID] & ";"
DoCmd.RunSQL "Update DOP_new SET [Modify BY] = '" & Itm_Logged_by & "', [Reference #] = '" & Itm_reference & "', [TD Account #] = " & Itm_TD_Number_No & ", [Department] = '" & Itm_from_Department & "', [Barcode #] = " & Itm_BarCode & ", [Client Name] = '" & Itm_ClientName & "', [Deal Name] = '" & Itm_Deal_Name_Label & "' , [Document Date] = #" & Itm_Document_Date & "#, [Document Type] = '" & Itm_Document_Type & "', [Additional Comments] = '" & Itm_Additional_Commitments & "', [Number of Documents] = " & Itm_No_of_Document & ", [Box #]=" & Itm_Box_no & ", [Of #] = " & Itm_of_No & " WHERE [TrackingID]= " & Me![TrackingID] & ";"
the first statement doesn't update [Modify By] in the correct row #
I notice that the ME![TrackingID] in the first statemtn returns 1.. (please note, the ME![TrackingID] should be 71)
the second statement update everything in the correct row except the [Modify BY] doesn't get updated.
please advise.
Alice