MS Access Date 触发仿真 [英] MS Access Date triggers emulation

查看:21
本文介绍了MS Access Date 触发仿真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Access 完全陌生(对 SQL 服务器有一些经验).

I am completely new to Access (have some experience with SQL server).

我不确定在 MS Access 2010 中是否有可能:如果 table.dateField 之一是今天或更早 - 需要发送有关该记录的电子邮件.

I am not sure if its even possible in MS Access 2010: if for one of table.dateField is today or earlier - need to send email about that record.

广泛的挖掘并没有带来任何结果,这似乎不可行,但希望对此发表意见.谢谢

Extensive digging doesn't bring any results, seems its not feasible, but wanted group opinion on that. Thank you

推荐答案

如果您的意思是说您需要在表上执行一个查询,那么该查询将管理针对每个违规行发送电子邮件的执行- 那我不认为你会有很多运气;

If you are meaning that you need to execute say a query on a table, and that query will manage the execution of sending an email in respect of each offending row - then I dont think you'll have much luck;

您可以从 access 中打开一个电子邮件窗口,但这本身不会发送电子邮件.

You can open an email window from access, but this won't send an email by itself.

你的后端使用什么?如果它很灵活,并且您使用 SQL 服务器作为后端,那么您可以使用一个实际的触发器来调用存储过程来发送所需的电子邮件.

What are you using for your backend? If it's flexible, and you used SQL server for the backend then you could use an actual trigger which calls a stored procedure to send the email required.

除此之外,我能想到的就是

Aside from this, all I can think of to do, would be

  • 创建一个查询来查找要发送电子邮件的行;
  • 创建一个 .net 可执行文件,它接收一组信息作为参数 &根据该数据发送您需要的电子邮件,
  • 在应用程序的表单上,使用计时器事件定期执行逻辑以打开查询,就像使用 adodb.recordset 并循环遍历记录集,并为查询返回的每一行调用 .net 可执行文件.

希望能帮到你

这篇关于MS Access Date 触发仿真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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