本文介绍了在表单的事件中:执行SQL 450次或执行1 SQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我最近的一些帖子都是一种独白。

我知道他们很挑战,没有人会对

他们。


但是,我一直在发帖,把这个NG作为我的记录管理员,并且

偶然也许有人可以提示。


这就是我正在做的事情:


在一个模拟仓库区域平面图的表格中,我

有450个文本框代表该区域的450个托盘空间。


打开表格后,我需要确定哪些空间被占用

,哪些不是(格式化相应的文本框背景)


目标:用户需要鸟瞰仓库计划

入住。


为实现这一目标:


选项1:

- 打开一个记录集该区域内所有占用的空间

- 循环并比较450个文本框中的每一个在

的位置记录集以确定空间是否被占用,然后

分别格式化文本框


选项2:

- 循环浏览450个文本框中的每一个

- 在循环内打开一个具有确切位置的记录集(拉动

只有1 - 或者没有 - 记录)然后取决于recordcount = 0或

Hi

Some of my recent posts have been kind of monologues.
I know that they are challenging and nobody may have any idea about
them.

However, I keep posting, take this NG as a record keeper for me, and
by chance maybe someone can suggest something.

This is what I''m doing:

In a form that simulates the floor plan of a zone in a warehouse, I
have 450 textboxes representing 450 pallet spaces in that zone.

Upon opening the form, I need to identify which spaces are occupied
and which are not (to format the respective textboxes background)

The goal: users need to have a bird''s eyes view of warehouse plan
occupancy.

To accomplish that goal:

Option 1:
- open a recordset of all occupied space in that zone
- Loop through and compare each of the 450 textboxes with locations in
the recordset to identify whether the space is occupied, then
respectively format the textbox

Option 2:
- Loop through each of the 450 textboxes
- Within the loop open a recordset with an exact location (pulling
only 1 - or no - record) then depending on whether recordcount = 0 or



我不确定哪种方法更有效。

或其他任何实现相同目标的算法?


感谢您的建议(如果有的话)


NB


I''m not sure which approach is more efficient.
Or any other algorythm to achieve the same goal?

Thanks for suggestion (if any)

NB

推荐答案



我不确定哪种方法更有效。
或其他任何实现相同目标的方法?

感谢您的建议(如果有的话)

NB



I''m not sure which approach is more efficient.
Or any other algorythm to achieve the same goal?

Thanks for suggestion (if any)

NB






往返服务器450次?不,谢谢。


我的0.02p


爱德华

-

阅读小组的阅读小组:




我不确定哪种方法更有效率。
或任何其他实现相同目标的方法?

谢谢建议(如果有的话)

NB


I''m not sure which approach is more efficient.
Or any other algorythm to achieve the same goal?

Thanks for suggestion (if any)

NB




我会探讨bly实验两个十进制(28,0)字段,这将给我448位(好吧,可能是3个这样的字段)。我会尝试为每个被占用的记录设置一个特定的位数

。然后我将字段汇总给我

一条记录,其中包含3个字段,每个字段为28个字节,其位对应于这些位置的

占用状态。 (我将不得不进一步尝试这个

,因为我不知道求和十进制字段的限制是什么。)

表格'的文本框占用然后可以将状态设置为一个简单的算法

whcih将检查求和字段的位状态。


-

Lyle

(电子邮件参考)


这篇关于在表单的事件中:执行SQL 450次或执行1 SQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 23:13