Glad that you got it solved but you may be taking the wrong path, which is going to lead to problems down the road if your database is not normalized. Why do you need to have it setup like that?
Maximus,
Nice code. Just a few suggestions, if you don't mind.
Code:
If rs!ID = 3 And rs!P_Name <> "Peter" Then
strMessage = MsgBox("Check the Entry with the ID=" & " " & rs!EntryID)
Exit Sub
Should have it exit here, so the correction should be made or better yet. Would recommend having it first look for errors and if any are found then a separate query would be ran that would append them to another table, so they can be viewed and corrected. Once the corrections are made then the function can be ran again, so everything is updated properly.
Again though, it sounds like your database isn't normalized and that's critical because it's going to cause you all kinds of headaches down the road if it's not.

Originally Posted by
devesa
How can I mark the thread as solved? I cannot find the option (first post in this forum)
Thanks!