First. Thanks for you help.
I’m trying to change the RecordSource depending on Unbound filed and my code is like this:
Private Sub awb2_AfterUpdate()
Dim strNewRecord As String
strNewRecord = "SELECT * FROM Employees " _
& " WHERE AWB = '" _
& Me!awb2.Value & "'"
Me.RecordSource = strNewRecord
End Sub
And when I try it I have this message error:
Run-time error ‘2001’
You canceled the previous operation.
I don’t know what is the meaning of that and what should I do. I already tried this code before and it was OK.
I’m trying to change the RecordSource depending on Unbound filed and my code is like this:
Private Sub awb2_AfterUpdate()
Dim strNewRecord As String
strNewRecord = "SELECT * FROM Employees " _
& " WHERE AWB = '" _
& Me!awb2.Value & "'"
Me.RecordSource = strNewRecord
End Sub
And when I try it I have this message error:
Run-time error ‘2001’
You canceled the previous operation.
I don’t know what is the meaning of that and what should I do. I already tried this code before and it was OK.