firestorm998
Registered User.
- Local time
- Today, 13:52
- Joined
- Nov 28, 2006
- Messages
- 24
This sounds like an age old issue on here that can be fixed in part but haven't yet found a full solution:
I have a DB based on a linked excel table which updates daily. Having got half way through the development of a DB I now find that the format of numbers in the Excel spreadheet is giving me gibberish in queries( ie 20000000 or 20,000,000.000000 or 200E+407 when i should see 20,000,000.) All the usual 0.00 ideas or changing the format of the column in the query do not resolve it as I am not presented with the ususal Number format options that include the thousand separator. I've even tried using a form to view the calculation results and changing the property of the fields there but to no avail.
To try & resolve:
I have gone back to scratch and reformatted the columns in Excel to numbers.
When I create the linked table, fields which I need for calculations show as text in Access even after formatting in Excel as Numbers.
So I've tried using the create table query to transfer the linked table data to a new table where I can set my own properties. This works to a point. The data in the linked table changes daily, some additions some deletions so I need to append daily to a table I can reformat the fied properties on. But obviously once I have an exiting table I have used to correct field types I get type mismatch errors when trying to append the latest linked table data.
I'm really stumped as to how to get a field number format to stick!Getting the field format right at its origin seems to be the only way to get the full results I want in queries down the line.
Is there anything about the column names in the Excel sheet that may be confusing Access? Some have brackets like:'[OTC] CDS Premium (bp)', or "." & underscores like:'pm.PV01_CREDIT'?
many thanks in advance.
I have a DB based on a linked excel table which updates daily. Having got half way through the development of a DB I now find that the format of numbers in the Excel spreadheet is giving me gibberish in queries( ie 20000000 or 20,000,000.000000 or 200E+407 when i should see 20,000,000.) All the usual 0.00 ideas or changing the format of the column in the query do not resolve it as I am not presented with the ususal Number format options that include the thousand separator. I've even tried using a form to view the calculation results and changing the property of the fields there but to no avail.
To try & resolve:
I have gone back to scratch and reformatted the columns in Excel to numbers.
When I create the linked table, fields which I need for calculations show as text in Access even after formatting in Excel as Numbers.
So I've tried using the create table query to transfer the linked table data to a new table where I can set my own properties. This works to a point. The data in the linked table changes daily, some additions some deletions so I need to append daily to a table I can reformat the fied properties on. But obviously once I have an exiting table I have used to correct field types I get type mismatch errors when trying to append the latest linked table data.
I'm really stumped as to how to get a field number format to stick!Getting the field format right at its origin seems to be the only way to get the full results I want in queries down the line.
Is there anything about the column names in the Excel sheet that may be confusing Access? Some have brackets like:'[OTC] CDS Premium (bp)', or "." & underscores like:'pm.PV01_CREDIT'?
many thanks in advance.