This...hard to give any good answers if the OP has not come back and clarified the situation. It seems obvious that a flight connection at AMS to BCN shouldn't be a problem, but if the OP is getting off a ship at Rotterdam, Amsterdam or the other possible ports, then catching a flight to BCN to board that afternoon, is a entirely different question. @kbconthemove, please come back and clarify the information, please.