K
Khalil Handal
Hi,
I have a table with a form "frmdata" related to it so as to enter data. I
have created another form "frmSearch" to show only certain record depending
on a "BirthDate " field with format of Short Date with input Mask of
99/99/00;0
In the regular form "frmData" I entered 2 digit year and it is turned
automaticly to 4 digit year.
In the second form "frmSearch" I have the following code (on open event):
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "frmSearch1", acNormal, , [Birthdate] = "10/10/1964"
End Sub
Question 1:
When I open the form "frmSearch" NO record is shown. The date 10/10/1964
exists in the table. I can't find the reason why??
Question 2:
What changes should be made to the code if I want to have only record
between two different dates where the user will enter each of the dates??
Any help is appriciated.
I have a table with a form "frmdata" related to it so as to enter data. I
have created another form "frmSearch" to show only certain record depending
on a "BirthDate " field with format of Short Date with input Mask of
99/99/00;0
In the regular form "frmData" I entered 2 digit year and it is turned
automaticly to 4 digit year.
In the second form "frmSearch" I have the following code (on open event):
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "frmSearch1", acNormal, , [Birthdate] = "10/10/1964"
End Sub
Question 1:
When I open the form "frmSearch" NO record is shown. The date 10/10/1964
exists in the table. I can't find the reason why??
Question 2:
What changes should be made to the code if I want to have only record
between two different dates where the user will enter each of the dates??
Any help is appriciated.