"Have you any idea" can be fine - but it can also be taken sarcastically. "Have you any idea how long I worked on this dinner, only to have you come home and say you've already eaten?!"
Simpler is just "Excuse me - do you know what time the next train leaves?" or "Excuse me - could you tell me what time...?"