B
bobdydd
Hi All
Access 2007 Windows XP
I have a table called:
UsystblApplication
Which has 2 fields called:
1. FieldName
2. Number
I want to be able to Update the reccord from a form which
has a control called:
1. Me.txtLastUsedRecordProject
And do it from a Command Button. I am using the code below,
and although I get the warning that I won't be able to undo it.
It just doesn't not alter. Here is the code I am using
Can anyone help?
Private Sub CmdLastUsedRecord_Click()
Dim strSQL As String
strSQL = "UPDATE UsystblApplication SET [Number]= " _
& txtLastUsedRecordProject _
& " WHERE UsystblApplication.Number= &
Me.txtLastUsedRecordProject"
DoCmd.RunSQL
End Sub
Access 2007 Windows XP
I have a table called:
UsystblApplication
Which has 2 fields called:
1. FieldName
2. Number
I want to be able to Update the reccord from a form which
has a control called:
1. Me.txtLastUsedRecordProject
And do it from a Command Button. I am using the code below,
and although I get the warning that I won't be able to undo it.
It just doesn't not alter. Here is the code I am using
Can anyone help?
Private Sub CmdLastUsedRecord_Click()
Dim strSQL As String
strSQL = "UPDATE UsystblApplication SET [Number]= " _
& txtLastUsedRecordProject _
& " WHERE UsystblApplication.Number= &
Me.txtLastUsedRecordProject"
DoCmd.RunSQL
End Sub