Hi,
I have a problem that does not seem to vanish. I am trying to update the last record in a table with autonumber using Max function. How should I go about doing that? this is my code that I am working with.
Private Sub Return_Click()
Dim strnumber As String
Text34.Value = Val(ClipBoard_GetData)
strnumber = Text34.Value
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE Transactions SET UnitPrice = '" & strnumber & "' WHERE TransactionID =4 " ' to be able to move in any place in the table and update
DoCmd.SetWarnings True
End Sub
What should I do with the mas function to benefit from the function? Please help. I am very desperate.
James
I have a problem that does not seem to vanish. I am trying to update the last record in a table with autonumber using Max function. How should I go about doing that? this is my code that I am working with.
Private Sub Return_Click()
Dim strnumber As String
Text34.Value = Val(ClipBoard_GetData)
strnumber = Text34.Value
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE Transactions SET UnitPrice = '" & strnumber & "' WHERE TransactionID =4 " ' to be able to move in any place in the table and update
DoCmd.SetWarnings True
End Sub
What should I do with the mas function to benefit from the function? Please help. I am very desperate.

James