E
Evi
My database records expenditure.
Because there are many expenditures I want to group them by Month.
My main form is based on a Months table contains a Months field and MonthID
which numbers January as 1, February as 2 etc
My subform query contains a calculated field called Mnth which has
=Month(TransactionDate) in the Query
I want to link the main and subform by MonthID/Mnth which works
Of course, I know that the main form can't add a date to the subform but
that isn't a problem. The current date is the Default value of MyDate in the
table but it can always be changed if required.
It doesn't matter that I can view the month of April and then add a
transaction for December. The form sorts itself when I turn over a page.
The only problem is that when I add a transaction I get the error message
'field Mnth is a calculated expression and cannot be edited'. After I press
OK I can continue to enter the record and everything is fine.
So how can I suppress this particular error message?
Evi
Because there are many expenditures I want to group them by Month.
My main form is based on a Months table contains a Months field and MonthID
which numbers January as 1, February as 2 etc
My subform query contains a calculated field called Mnth which has
=Month(TransactionDate) in the Query
I want to link the main and subform by MonthID/Mnth which works
Of course, I know that the main form can't add a date to the subform but
that isn't a problem. The current date is the Default value of MyDate in the
table but it can always be changed if required.
It doesn't matter that I can view the month of April and then add a
transaction for December. The form sorts itself when I turn over a page.
The only problem is that when I add a transaction I get the error message
'field Mnth is a calculated expression and cannot be edited'. After I press
OK I can continue to enter the record and everything is fine.
So how can I suppress this particular error message?
Evi