You're comparing an integer value with a string value in MDUser_ID='" & DatabaseModule.UserID & "'"