Sorry but this report is incorrect.
Andy is already on the direct entry list for the Kolding Challenger that week so could not accept a wildcard even if it were given to him. Similarly he is not allowed to play qualifying for Madrid.
However, I'm sure they must have investigated whether a wildcard was a possibility prior to signing up for Kolding.
A player is not allowed to withdraw from one tournament to enter another if they are on the direct entry list. If they happen to be an alternate, they are allowed to change plans.