I
ielmrani via AccessMonster.com
Can anyone tell me why this code is not working:
Private Sub Form_Open(Cancel As Integer)
If Me.[Inception_Date] between #1/1/2006# And #12/31/2006# Then
txtCode = "6I"
Else
If Me.[Inception_Date] between #1/1/2007# And #12/31/2007# Then
txtCode = "7I"
End If
End If
End Sub
It does like the word Between.
Thanks in advance
Private Sub Form_Open(Cancel As Integer)
If Me.[Inception_Date] between #1/1/2006# And #12/31/2006# Then
txtCode = "6I"
Else
If Me.[Inception_Date] between #1/1/2007# And #12/31/2007# Then
txtCode = "7I"
End If
End If
End Sub
It does like the word Between.
Thanks in advance