从前端复制后端 [英] copying a backend from within frontend

查看:102
本文介绍了从前端复制后端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的理解是你可以在所有

记录集关闭的情况下复制后端。

但这不是我所经历的。

有没有办法找出保持后端连接的原因? (也许我忘了

a记录集)


感谢任何输入


Michiel

my understanding is that you can copy a backend on condition that all
recordsets are closed.
But it is not what I experience.
Is there a way to find out what keeps the backend connected? (maybe I forgot
a recordset somewhere)

thanks for any input

Michiel

推荐答案

Michiel Rapati-Kekkonen写道:
Michiel Rapati-Kekkonen wrote:

我的理解是你可以复制一个后端,条件是所有

记录集已关闭。

但这不是我所经历的。

有没有办法找出保持后端连接的原因? (也许我

在某个地方忘了记录集)


感谢任何输入


Michiel
my understanding is that you can copy a backend on condition that all
recordsets are closed.
But it is not what I experience.
Is there a way to find out what keeps the backend connected? (maybe I
forgot a recordset somewhere)

thanks for any input

Michiel



您可以检查同一目录中是否存在LDB文件。由于存在LDB文件,因此它是正在使用。


-

Rick Brandt,Microsoft访问MVP

电子邮件(视情况而定)至...

来自Hunter dot的RBrandt

You can check for the presence of the LDB file in the same directory. As
long as an LDB file exists then it is "in use".

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


" Michiel Rapati-吉科宁" < nn@nonsense.zzwrote:
"Michiel Rapati-Kekkonen" <nn@nonsense.zzwrote:

>我的理解是你可以在所有
记录集关闭的情况下复制后端。
但这不是我所经历的。
有没有办法找出是什么让后端连接起来的? (也许我忘记了某个地方的记录集)
>my understanding is that you can copy a backend on condition that all
recordsets are closed.
But it is not what I experience.
Is there a way to find out what keeps the backend connected? (maybe I forgot
a recordset somewhere)



记录集可以包含隐藏的表格或报告或其他一些。还有一个数据库对象

如果你正在使用它。


Tony

-

Tony Toews,Microsoft Access MVP

请仅在新闻组中回复,以便其他人可以阅读整个消息主题。

Microsoft Access Links,提示,提示&会计系统
http://www.granite.ab.ca /accsmstr.htm

Tony的Microsoft Access博客 - http://msmvps.com/blogs/access/


" Michiel Rapati-Kekkonen" < nn@nonsense.zzwrote in message

news:Fq *************** @ read4.inet.fi ...
"Michiel Rapati-Kekkonen" <nn@nonsense.zzwrote in message
news:Fq***************@read4.inet.fi...

我的理解是你可以在所有

记录集关闭的情况下复制后端。

但这不是我的体验。

有没有办法找出保持后端连接的原因? (也许我

在某个地方忘了记录集)


感谢任何输入
my understanding is that you can copy a backend on condition that all
recordsets are closed.
But it is not what I experience.
Is there a way to find out what keeps the backend connected? (maybe I
forgot a recordset somewhere)

thanks for any input



保持请注意,你不能打开任何打开的*绑定*形式的代码,这将关闭所有连接。


让我解释


form1:bound --- call forms2


form2:unbound,运行代码以关闭表单1


您的连接将保持打开状态。为什么?


它是对象的堆栈特性以及ms-access如何清理内存。


在备忘录中,当form1关闭时,并非所有的记忆都被释放,直到

代码*返回


例如:


memory form1(和连接)

调用---- form2(没有连接

---- form2关闭form1

*仅*当form2关闭时来自form1的调用代码+内存实际上是

终于被释放....


所以,这意味着如果你手动关闭form1然后打开form2然后

然后在form2上有一个按钮来执行紧凑和修复,然后你

应该没问题。我没试过这个但是如果表单1叫做form2则可能

通过一个宏(而不是代码),然后连接*很可能*也将是

关闭。这只是一个问题,当ms-access清理它的内存.. 。

所以,如果你是主要形式,或启动形式是不受限制的,那么你应该是
能够在主表单上放置一个按钮并进行修复。

更好的方法是在自定义菜单栏中添加一个选项,并且

调用模块中的代码。 (这个模块代码可以关闭所有表单,因为

没有名为* from *的程序堆栈形成......没有返回

stack ..因此连接被释放。


at

-

Albert D. Kallal(访问MVP)

加拿大艾伯塔省埃德蒙顿
pl ******* **********@msn.com


这篇关于从前端复制后端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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