如何将值传递给表单 [英] How do I Pass Values to Forms

查看:119
本文介绍了如何将值传递给表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将数据传递给表单(从列表中打开某个寄存器到表单中)。我使用了DoCmd.OpenForm程序,并传递了数据。但它不起作用。有人可以帮助我吗?

I tried to pass data to a Form (to open a certain register from a list into a Form). I used DoCmd.OpenForm procedure, and passed the data. but it does not work. Can somebody help me?

展开 | 选择 | Wrap | 行号

推荐答案

Alvaro,我们可以猜到[< b> FrmMenu ]是一种形式,但是:
Alvaro, We can guess that [FrmMenu] is a form, but what are :
  1. [SubQryInfoUtilProximasPartidas]?
  2. [c_ficha]?



你告诉我们它不起作用,但你没有告诉我们实际发生的事情。它以什么方式起作用?你看到它什么时候运行?


如果你想让我们提供答案,你需要向我们提出一个问题。


You tell us it does not work, but you give us no clues as to what actually happened. In what way doesn''t it work? What do you see when it runs?

You need to provide us with a question if you want us to provide an answer.


NeoPA,


首先,非常感谢您的回答。

Hi, NeoPA,

First of all, thanks a lot for answering.

展开 | 选择 | 换行 | 行号


这是一个很好的回复阿尔瓦罗,但我还有一些我不明白的观点。让我看看我是否可以提供一些更有编号的问题。请按答案显示问题编号:
That''s a good reply Alvaro, but I still have some points I don''t understand. Let me see if I can help with some more numbered questions. Please show the question number by each answer :
  1. [表格]![ FrmMenu ]![< b> SubQryInfoUtilProximasPartidas ]![ c_ficha ]

    上面表达式中的[ SubQryInfoUtilProximasPartidas ]是什么?

    SubQry表示子查询,但子查询作为表单上的控件是没有意义的。可以使用子表单,但子表单的命名很奇怪。请解释。
  2. 上面的表达式是什么[ c_ficha ]?

    如果[ SubQryInfoUtilProximasPartidas ]是一个子表单那么它可能是对该子表单的控制,但它控制的是什么类型的控件和它反映的数据类型(数字?字符串?日期?)?
  3. [C_Ficha]是记录中的一个字段[< b> FrmMenu ]有记录来源吗?
  1. [Forms]![FrmMenu]![SubQryInfoUtilProximasPartidas]![c_ficha]
    What is [SubQryInfoUtilProximasPartidas] from the expression above?
    SubQry indicates a subquery, but subqueries wouldn''t make sense as a control on a form. A subform may, but the naming is strange for a subform. Please explain.
  2. What is [c_ficha] from the expression above?
    If [SubQryInfoUtilProximasPartidas] is a subform then it could be a control on that subform, but what type of control and what type of data does it reflect (Numeric? String? Date?)?
  3. Is [C_Ficha] a field on the record that [FrmMenu] has as a record source?



如果对这些问题有明确的答案,我想我们可以一起解决你的问题。


With clear answers to these questions I think we can resolve your problem together.


这篇关于如何将值传递给表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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