M
Max
I have a field called A, when somone update the B field, I would like the A
field get updated.
I wrote the below code but nothing is happening when i update the Submite
Date field.
Private Sub B_AfterUpdate()
Dim strSQL As String
Dim db As DAO.Database
Set db = CurrentDb()
strSQL = "UPDATE Requests" _
& " SET Requests.A=" & "Right(,4) & '_' & [RequestID]" _
& " WHERE (((Requests.A) Is Null) AND ((Requests.) Is Not Null))"
db.Execute strSQL
End Sub
field get updated.
I wrote the below code but nothing is happening when i update the Submite
Date field.
Private Sub B_AfterUpdate()
Dim strSQL As String
Dim db As DAO.Database
Set db = CurrentDb()
strSQL = "UPDATE Requests" _
& " SET Requests.A=" & "Right(,4) & '_' & [RequestID]" _
& " WHERE (((Requests.A) Is Null) AND ((Requests.) Is Not Null))"
db.Execute strSQL
End Sub