I am not too good with writing code but I researched INSERTS and cant understand why this code does not work. It seems to be unhappy about my table TbL_IF but I have no idea why. Any ideas
Private Sub Status_AfterUpdate()
If Status = 4 Then
INSERT INTO Tbl_IF(ready)
VALUES (True)
Else If Status = 15 Then
INSERT INTO Tbl_viewing(ready)
VALUES (True)
Else: End If
End Sub
Private Sub Status_AfterUpdate()
If Status = 4 Then
INSERT INTO Tbl_IF(ready)
VALUES (True)
Else If Status = 15 Then
INSERT INTO Tbl_viewing(ready)
VALUES (True)
Else: End If
End Sub