MS Access linked tables automatically long integers

▼魔方 西西 提交于 2019-12-11 11:31:45

问题


I have a large amount of linked tables in my access database that are going to be refreshed regularly and manipulated via queries. However, access is automatically determining some important fields as long integers because the beginning values of the field are usually 0s. When the value is not 0, it is goes up to 4 decimal places. Since I have so many tables and since they will be replaced each week with a new table of the same name (thus the link), it is not feasible to manually change the formatting of the fields to double within the excel document itself. Is there any way to override this so that any linked table with a field that is "number" is automatically a double?

Edit: Basically I will be running reports that are going to be exported to excel documents each week. I have set up an "active" folder that has the current excel files I need to import. Each week the excel files in the active folder will be deleted and replaced with files of the same name and format, but with new data. This is why I am using linked tables to those files.

Linked table example:

revised_full_cost   change
615.194               0
402.402               0
1548.193            -4464
5329.836              0

Versus the actual excel file:

revised_full_cost   change
615.194               0
402.402               0
1548.193          -4464.207
5329.836              0

As you can see the "change" field is being determined as an integer by the linked table and rounding when I need the decimals


回答1:


Figured it out (and I feel dumb):

When linking tables you can choose the desired format for each field when going through the linked table wizard steps.



来源:https://stackoverflow.com/questions/30760955/ms-access-linked-tables-automatically-long-integers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!