I am making a database for hockey teams and games. How can I create a validation rule so that one team cannot play itself and that a team can not play the same team more than once a day? I have tried: 
	
	
	
		
But this is not working. Any help would be appreciated.
Thanks
 
		Code:
	
	
	IIf([homeTeamId]=[awayTeamId])
	But this is not working. Any help would be appreciated.
Thanks