简体   繁体   English

将数据从数据文件导出为Excel格式

[英]Export data from datafile to excel format

Background: 背景:

Our company uses Sage Line 50 as our accounting software. 我们公司使用Sage Line 50作为我们的会计软件。 We generate all of our Sales Orders from this program. 我们从该程序生成所有销售订单。 We also use MS Access 2010 to store order information and generate our internal shop paperwork and packing slips. 我们还使用MS Access 2010存储订单信息,并生成我们的内部商店文书和装箱单。

The Problem: 问题:

Data entry redundancy. 数据输入冗余。 We enter information from Customer Purchase Orders into our Sage software, and then enter the same information into the Access database. 我们将来自客户采购订单的信息输入到我们的Sage软件中,然后将相同的信息输入到Access数据库中。

What I am looking for: 我在寻找什么:

A solution that will let me export raw Sales Order data after creating in Sage into MS-Access 一个解决方案,可以让我在Sage中创建MS-Access后导出原始销售订单数据

What I have tried: 我尝试过的

The export process from Sage only allows CSV exports, and is a manual process that cannot be automated at all. Sage的导出过程仅允许CSV导出,并且是完全不能自动化的手动过程。 I am able to produce this export and then run an append query that will import that data into the Access data, but I am looking to automate this process, perhaps on a daily basis. 我能够进行此导出,然后运行附加查询,该查询会将数据导入到Access数据中,但是我希望使此过程自动化(也许每天)。 I have looked into using Crystal Reports (packaged with Sage, which I am told can run automated reports and save in an MS Excel format), but I do not know how to navigate the data files to find the specific sales data I am looking for. 我已经研究过使用Crystal Reports(与Sage打包在一起,可以运行自动报告并以MS Excel格式保存),但是我不知道如何导航数据文件以查找所需的特定销售数据。

The guys are correct - easiest way to do this would be to use the ODBC driver, however, you must run the correct SQL query and ensure you join the Purchase Order table to the Order item table using the correct fields or it will not return the right data. 伙计们是正确的-执行此操作的最简单方法是使用ODBC驱动程序,但是,您必须运行正确的SQL查询并确保使用正确的字段将Purchase Order表与Order item表联接在一起,否则它将不会返回正确的数据。

One issue you will have is that you only want to pull through the most recent transactions so use a query like this to do that your query would look something like this:- 您将遇到的一个问题是,您只想完成最新的事务,因此使用这样的查询来使您的查询看起来像这样:

SELECT *, PURCHASE_LEDGER.ACCOUNT_REF, PURCHASE_LEDGER.E_MAIL FROM PURCHASE_ORDER, PURCHASE_LEDGER INNER JOIN POP_ITEM ON PURCHASE_ORDER.ORDER_NUMBER = POP_ITEM.ORDER_NUMBER WHERE PURCHASE_LEDGER.ACCOUNT_REF = PURCHASE_ORDER.ACCOUNT_REF AND RECORD_MODIFY_DATE >= '2013-04-03 00:00:00' 从PURCHASE_ORDER中选择*,PURCHASE_LEDGER.ACCOUNT_REF,PURCHASE_LEDGER.E_MAIL,在PURCHASE_ORDER.ORDER_NUMBER = POP_ITEM.ORDER_NUMBER上PURCHASE_LEDGER内部联接POP_ITEM在其中PURCHASE_LEDGER.ACCOUNT_REF = 00'00_D = 0'='PURCHASE_LEDGER.ACCOUNT_REF = P00'= 0'

Alternatively there are many one-click commercial solutions to this problem - do a search on Google for "Sage Integration" and you'll find various suppliers who produce products that will do this for you 另外,也有许多解决此问题的一键式商业解决方案-在Google上搜索“ Sage Integration”,您会发现各种供应商会生产可满足您需求的产品

What you are trying to do can be automated as I've done it for the last company that I worked for (exporting sales orders and invoices to CSV and to Excel). 当我为上一个工作过的公司完成时(将销售订单和发票导出到CSV和Excel),您要尝试执行的操作可以自动化。 However, the downer is that it requires the Sage SDK which costs £1500. 但是,缺点是它需要Sage SDK,价格为1500英镑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM