访问表单+按钮单击+从SQL Server表数据创建csv文件 [英] Access Form + button Click + create csv file from SQL Server table data

查看:89
本文介绍了访问表单+按钮单击+从SQL Server表数据创建csv文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我的要求是sql server表有数据。用户使用"访问表单"使用链接表将数据插入该表。使用访问表单将数据输入表后,要求提供一个将表导出到csv文件的按钮。

My requirement is that sql server table has data. User is using Access Form to insert data into that table using linked table. After data is entered into table using access form, requirement is to provide a button to export table to csv file.

1)访问表单

2)Sql server表作为链接表

2) Sql server table as linked table

3 )创建CSV文件

3) Create CSV file

我正在考虑在sql server中创建一个存储过程,它执行SSIS包来生成csv文件。从访问FORM,调用此SQL Server存储过程

I was thinking of creating a stored procedure in sql server which executes SSIS package to generate csv file. From access FORM, call this SQL server stored procedure

我想知道生成CSV文件的最佳选项是什么。如果我的方法也是其中一个选项,请指导我如何做。

I would like to know what is the best option to generate CSV file. If my approach is also one of the options, can you please guide me how to do it.

谢谢

推荐答案

好奇,因为我无法测试这个,但您是否尝试将链接表导出到CSV?如果是这样,请再次尝试并将导出保存为规范。然后,您可以在TransferText方法中使用此规范。

Just curious since I can't test this but have you tried exporting the linked table into a CSV? If so, try it again and save the export as a specification. You can then use this spec in a TransferText method.

希望它有帮助......

Hope it helps...


这篇关于访问表单+按钮单击+从SQL Server表数据创建csv文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆