Robin Evans
New member
- Local time
- Today, 23:45
- Joined
- Feb 11, 2002
- Messages
- 9
I have created a database that my nonprofit company will use for tracking members monetary gift levels. The main table and form contains personal (name, address, phone, etc.) information about each member. Information about each donation a person makes is kept in a subtable and in the main form I have put a subform, so I can look at both a persons personal and monetary data at the same time. I use the field “Member Number” as the key field in the main database to ensure that the records appear properly on the main form.
In my main table I have a field called: Total Mem Amt and the Data Type is set to Currency. I have placed this field on my main form. I would like this form to show the total amount a person has given to our organization over the entire course of their membership.
In an attempt to do this I created a macro called: Total Membership Amount. I have set the action to: SetValue and the item is: [Member History]![Amount]. Now here comes the part that seems to be giving me trouble, the expression.
I have been able to enter the expression in both of the following manners (at different times of course) and have the macro accept it:
DSum([Amount],[Member History],[Member Number]=[Forms]![Members and Donors]![Member Number])
DSum([Member History]![Amount],[Member History]![Member Number]=[Forms]![Members and Donors]![Member Number])
After I entered an expression (that I hoped would work) I went into form design of my main form and in the field property event tab I put in the macros name in the “On Got Focus” property. However, when I go to form view and click on the Total Mem Amt field I get the following error:
The object doesn’t contain the Automation object ‘Member History.’ You tried to run a Visual Basic procedure to set a property or method for an object. However, the component doesn’t make the property or method available for Automation operations. Check the component’s documentation for information on the properties and methods it makes available for Automation operations.
My experience with Microsoft Access puts me basically just above the beginner level and very far away from being considered efficient with the program, so basically I don’t understand the error message at all and I might be going at this all wrong. Any advice any one could give would be really helpful. This is my last hurdle before the database is up and running. Thanks in advance.
Robin Evans
Membership Coordinator
Tohono Chul Park
robinevans@tohonochulpark.org
In my main table I have a field called: Total Mem Amt and the Data Type is set to Currency. I have placed this field on my main form. I would like this form to show the total amount a person has given to our organization over the entire course of their membership.
In an attempt to do this I created a macro called: Total Membership Amount. I have set the action to: SetValue and the item is: [Member History]![Amount]. Now here comes the part that seems to be giving me trouble, the expression.
I have been able to enter the expression in both of the following manners (at different times of course) and have the macro accept it:
DSum([Amount],[Member History],[Member Number]=[Forms]![Members and Donors]![Member Number])
DSum([Member History]![Amount],[Member History]![Member Number]=[Forms]![Members and Donors]![Member Number])
After I entered an expression (that I hoped would work) I went into form design of my main form and in the field property event tab I put in the macros name in the “On Got Focus” property. However, when I go to form view and click on the Total Mem Amt field I get the following error:
The object doesn’t contain the Automation object ‘Member History.’ You tried to run a Visual Basic procedure to set a property or method for an object. However, the component doesn’t make the property or method available for Automation operations. Check the component’s documentation for information on the properties and methods it makes available for Automation operations.
My experience with Microsoft Access puts me basically just above the beginner level and very far away from being considered efficient with the program, so basically I don’t understand the error message at all and I might be going at this all wrong. Any advice any one could give would be really helpful. This is my last hurdle before the database is up and running. Thanks in advance.
Robin Evans
Membership Coordinator
Tohono Chul Park
robinevans@tohonochulpark.org