访问特定记录的子窗体上的控件 [英] Accessing controls on a subform for a particular record

查看:75
本文介绍了访问特定记录的子窗体上的控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


问这个问题有问题,但我还没找到一个anwser(第一篇文章所以请不要拍我)


好​​的,它是:


我有一个子表单(视图是连续表单),它从查询中获取数据(Access 2003)


Hi all,

Questions simialar to this have been asked but i haven''t found an anwser yet (first post so please don''t shoot me)

Ok here it goes:

I have a subform (view is Continuous Form) which gets its data from a query (Access 2003)


推荐答案

你好Jason,


你现在还没有说你的价格计算在哪里所以我我会假设它在控制源中。从那里删除并将其放在表格On Current事件中(这假设表格上没有发生价格变化)。你不会说控制名称是什么,所以我只是使用字段名称添加一些内容。如果你在查询中计算这个价格,那就不行了。

Hi Jason,

You don''t say where you have the price calculation at the moment so I''ll assume it''s in the control source. Remove it from there and put it in the forms On Current event (This assumes that no changes to the price are taking place on the form). You don''t say what the control names are so I''m just using the field names with some additions. If you are calculating this price in the query this won''t work.

展开 | 选择 | Wrap | 行号


Hi mary: )


感谢您的回复


sry缺乏细节,试图简化一点,事实是我没有确切地决定了如何计算价格(现在它是从查询调用的vb函数),但目前你看到的价格只是门价...直接来自数据库tblDoor.Price ;简单:)


所以让我们尝试简单的事情

Hi mary :)

Thanks for the response

sry for the lack of details, was trying to simplify a little, truth is i haven''t decided exactly how im going to calc the price (right now its a vb function that is called from the query), but for the moment the price you see here is just the door price... straight from the database "tblDoor.Price" easy :)

So lets try something simple

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号



嗨玛丽:)


感谢您的回复


sry缺乏细节,试图简化一点,事实是我还没有确切地决定如何计算价格(现在它是从查询调用的vb函数),但目前你看到的价格是只是门价......直接来自数据库tblDoor.Price简单:)


所以让我们尝试简单的事情

Hi mary :)

Thanks for the response

sry for the lack of details, was trying to simplify a little, truth is i haven''t decided exactly how im going to calc the price (right now its a vb function that is called from the query), but for the moment the price you see here is just the door price... straight from the database "tblDoor.Price" easy :)

So lets try something simple

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


这篇关于访问特定记录的子窗体上的控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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