I have a form which displays student data. It has a bunch of fields, but one particular field is not properly calculating.
The form is bound to a table called StudentProfile.
In the table, the fields in question, which hold various fees, are called:
- Tuition
- Application
- Books
- Activity
- Registration
- OtherFee
The bound controls are named so as not to confuse anything:
- txtTuition
- txtApplication
- txtBooks
- txtActivity
- txtRegistration
- txtOtherFee
Finally, I have a text box called txtTotalFees, whose ControlSource is:
"=[Tuition]+[Application]+[Books]+[Activity]+[Registration]+[OtherFee]"
Problem is, the total fees do not reflect the Application field. No matter what I put in that text box, the total fees do not change. Changing any of the other text boxes causes the total to update appropriately. But, the total NEVER includes the Application field amount.
The data source and bindings are correct, because the underlying table record IS updated, even including the Application field. Changing most fields cause the total textbox to be updated immediately. However, even moving to next record and back, the Application field is not included in the total the way it should be.
I tried to use full name of field after reading that suggestion in a forum ([StudentProfile]![Application]), but that just gives me "#Name?" in the total box, so that doesn't work.
Now that I think of it, is it possible that the name "Application" is a reserved word? I know it is used in VBA code. If that's true, can it be escaped so the "keywordness" is ignored? Or is the only solution to rename the field in the data table?
Thanks...