parry
MrExcel MVP
- Joined
- Aug 20, 2002
- Messages
- 3,355
Hi, the above error message is driving me insane, and appears when I am trying to run an update query on a table, based on data from a query.
What I am trying to do is use data in a field on the table to obtain a value for another field. This value is based on a percentage.
For example the value of field1 (say $10) for a record as a percentage of the sum of all field1 totals (say $100) would equal 10%. The value of field2 is derived by using this percentage against a set figure (say $200), so the value of field2 should be $20.
Field2 currently has no data and I want to update the field as per above.
Firstly I created a query with an expression that obtains the percentage (but just expressed as a number - 0.20 would be 20%) for each record. This percentage expression field is just in the query not an actual field in the table.
I then created an update query that includes the table I want updated plus this query that holds the percentage for each record in the table. I then just take the figure $200 multiplied by the percentage as the data to update but..... I get that bloody error message.
Looking at the help has given me no help as its very poorly explained. COuld someone expolain why this error is occuring and what I need to do to fix the problem.
cheers
Parry
What I am trying to do is use data in a field on the table to obtain a value for another field. This value is based on a percentage.
For example the value of field1 (say $10) for a record as a percentage of the sum of all field1 totals (say $100) would equal 10%. The value of field2 is derived by using this percentage against a set figure (say $200), so the value of field2 should be $20.
Field2 currently has no data and I want to update the field as per above.
Firstly I created a query with an expression that obtains the percentage (but just expressed as a number - 0.20 would be 20%) for each record. This percentage expression field is just in the query not an actual field in the table.
I then created an update query that includes the table I want updated plus this query that holds the percentage for each record in the table. I then just take the figure $200 multiplied by the percentage as the data to update but..... I get that bloody error message.
Looking at the help has given me no help as its very poorly explained. COuld someone expolain why this error is occuring and what I need to do to fix the problem.
cheers
Parry