JazzSP8
Well-known Member
- Joined
- Sep 30, 2005
- Messages
- 1,233
- Office Version
- 365
- Platform
- Windows
Hey All
I've added some Calculated Fields to a Query I've got in Access, but when I try and import (or export) it into Excel I get an Error Message whereas before I didn't.
Importing (from Excel: 'Data' > 'Access') I get;
"Data could not be retrieved from the Database. Check the database server or contact..." (etc)
Exporting (from Access: Export to Excel Workbook) I get;
"The contents of fiels in 321863 record(s) were delete, and 0 record(s) were lost due to key violations.
* If data was deleted, the data you pased or imported doesn't match the field data types or the FieldSize property in the destination table.
* if records were lost, either the records you pasted contain primary key values that already exist in the destination table, or they violate referential integrity rules for relationship defined between tables."
The calculations are all along the lines of;
Now, some of these do give DIV/0 errors, and I believe Access doesn't like exporting a Table with errors (?), so, with an Excel head on I used;
But, that doesn't seem to have done anything useful - The DIV/0 errors still appear and the query still won't Import or Export.
Can someone please help as to where I should go next as those Error messages don't seem to relate to me putting in Calculated Fields but I don't see what else it can be on something that has been working fine till this point?
Indeed they do seem to work (apart from the ISERROR) when I view the results in Access?
Thanks
I've added some Calculated Fields to a Query I've got in Access, but when I try and import (or export) it into Excel I get an Error Message whereas before I didn't.
Importing (from Excel: 'Data' > 'Access') I get;
"Data could not be retrieved from the Database. Check the database server or contact..." (etc)
Exporting (from Access: Export to Excel Workbook) I get;
"The contents of fiels in 321863 record(s) were delete, and 0 record(s) were lost due to key violations.
* If data was deleted, the data you pased or imported doesn't match the field data types or the FieldSize property in the destination table.
* if records were lost, either the records you pasted contain primary key values that already exist in the destination table, or they violate referential integrity rules for relationship defined between tables."
The calculations are all along the lines of;
Code:
Current Margin: ([End User 1]-[Previous LTC])/[End User 1]
Now, some of these do give DIV/0 errors, and I believe Access doesn't like exporting a Table with errors (?), so, with an Excel head on I used;
Code:
Current Margin: IIf(IsError(([End User 1]-[Previous LTC])/[End User 1]),"",([End User 1]-[Previous LTC])/[End User 1])
But, that doesn't seem to have done anything useful - The DIV/0 errors still appear and the query still won't Import or Export.
Can someone please help as to where I should go next as those Error messages don't seem to relate to me putting in Calculated Fields but I don't see what else it can be on something that has been working fine till this point?
Indeed they do seem to work (apart from the ISERROR) when I view the results in Access?
Thanks