MS Access 将记录移动到字段中
我有一个到数据库的 ODBC 连接,该数据库不属于我,也无法更改。 我想做的是将相关记录合并为一条记录。 该关系是一对多。
我有一个学生管理系统,想要导出一个呼叫列表,该列表提供自动呼叫服务(按呼叫收费)。 如果有多个学生住在那里,我希望只能给一个房子打电话一次。
所需的调出文件结构:
PHONE Inst1 Inst2 Inst3
555-5555 John was absent today Jane was absent today Joe was absent today
与现有数据相反:
PHONE Inst
555-5555 John was absent today
555-5555 Jane was absent today
555-5555 Joe was absent today
有什么建议吗?
I have an ODBC connection to a database I don't own and can't change. What I am looking to do is to make related records merge into one record. The relationship is a 1 to many.
I have a student managment system and want to export a call out list which feeds an automated callout service (charged by Call). I want to be able to call a house only once if there are multiple students living there.
Desired Call out file structure:
PHONE Inst1 Inst2 Inst3
555-5555 John was absent today Jane was absent today Joe was absent today
as apposed to existing data:
PHONE Inst
555-5555 John was absent today
555-5555 Jane was absent today
555-5555 Joe was absent today
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的第一个倾向是使用交叉表查询; 然而,这可能会有点棘手。
如何在模块中剪切一些 VBA 代码以将它们连接在一起,然后插入到另一个表中(如下所示 - 完全未经测试并且可能在某处损坏)?
My first inclination was to use a crosstab query; however, that could get a bit hairy.
What about cutting some VBA code in a module to concatenate them together and then insert in the other table (something like the following - completely untested and probably broken somewhere)?