2014-03-12 140 views

回答

1

你需要将它T1和T2之间的比较。像这样的东西应该工作。请记住,年份必须相同或比较不起作用,如果您不希望删除等号,则此比较包括端点,这也假设您正在使用日期对象

If (BirthDate >= T1 And BirthDate <= T2) Then 
    Label5.Caption = "You're In" 
Else 
    Label5.Caption = "You're Out" 
End If 
If (BirthDate >= T1 And BirthDate <= T2) Then 
    Label5.Caption = "You're In" 
Else 
    Label5.Caption = "You're Out" 
End If 
相关问题