Hi All
Asking help again. I am a casual user of Access. I have a simple
application which works correctly under Access 2003. I tried it under
2007. One of the module refuses to work. I have :
A table : PersonId, Name, Birthday
----
A form (frmBirthDay) which includes ActiveX MonthView (ctlCalendar)
and a subform (frmBirthDaySub ) which displays names and year of birth
of people born on same day and month selected on the calendar. A
module:
Option Compare Database
Option Explicit
Private Sub cmdClose_Click( )
DoCmd.Close
End Sub
Private Sub CtlCalendar_Dat eClick(ByVal DateClicked As Date)
frmBirthDaySub. Requery
End Sub
Private Sub CtlCalendar_Sel Change(ByVal StartDate As Date, ByVal
EndDate As Date, Cancel As Boolean)
frmBirthDaySub. Requery
End Sub
Private Sub Form_Load()
CtlCalendar.Val ue = Date
frmBirthDaySub. Requery
End Sub
----
A select query (qryBirthDay) which has the following field :Name,
A:Year(birthday ), Month(birthday) , Day(BirthDay)
[Month(Birthday) criteria = Forms]![FrmBirthDay]![ctlCalendar].[Month]
[Day(Birthday) criteria = Forms]![FrmBirthDay]![ctlCalendar].[Day]
Under Access 2007, when I run the form (frmBirthDay), I get :
Enter value of parameter
Forms]![FrmBirthDay]![ctlCalendar].[Month, the same question for
month....
I spent 3 days fighting with this. I read the forum but did not find
similar posts. I cannot figure out where is the problem.
TKS AGN for helping.
Asking help again. I am a casual user of Access. I have a simple
application which works correctly under Access 2003. I tried it under
2007. One of the module refuses to work. I have :
A table : PersonId, Name, Birthday
----
A form (frmBirthDay) which includes ActiveX MonthView (ctlCalendar)
and a subform (frmBirthDaySub ) which displays names and year of birth
of people born on same day and month selected on the calendar. A
module:
Option Compare Database
Option Explicit
Private Sub cmdClose_Click( )
DoCmd.Close
End Sub
Private Sub CtlCalendar_Dat eClick(ByVal DateClicked As Date)
frmBirthDaySub. Requery
End Sub
Private Sub CtlCalendar_Sel Change(ByVal StartDate As Date, ByVal
EndDate As Date, Cancel As Boolean)
frmBirthDaySub. Requery
End Sub
Private Sub Form_Load()
CtlCalendar.Val ue = Date
frmBirthDaySub. Requery
End Sub
----
A select query (qryBirthDay) which has the following field :Name,
A:Year(birthday ), Month(birthday) , Day(BirthDay)
[Month(Birthday) criteria = Forms]![FrmBirthDay]![ctlCalendar].[Month]
[Day(Birthday) criteria = Forms]![FrmBirthDay]![ctlCalendar].[Day]
Under Access 2007, when I run the form (frmBirthDay), I get :
Enter value of parameter
Forms]![FrmBirthDay]![ctlCalendar].[Month, the same question for
month....
I spent 3 days fighting with this. I read the forum but did not find
similar posts. I cannot figure out where is the problem.
TKS AGN for helping.
Comment