English 中文(简体)
在习惯财产被定义或确定的情况下,可以作保
原标题:Can t Find Where a Custom Property is Being Defined or Set

I m 服务器开发商,目前正在支持检索数据库。 The VBA Code below refer to atom property referenced by Me![SwitchsterID] in an On Click activityhandler. 该表有一个地方表格,其记录来源称为“Switch板项目”。

我搜索了数据库中的每一份VBA档案和单元,财产没有定义或列入编码,因此,我认为,它必须是获得公平调查股的一个地方。 请允许我向我指出正确的方向吗?

Private Function HandleButtonClick(intBtn As Integer)
  
    Dim con As Object
    Dim rs As Object
    Dim stSql As String

      Find the item in the Switchboard Items table
      that corresponds to the button that was clicked.
    Set con = Application.CurrentProject.Connection
    Set rs = CreateObject("ADODB.Recordset")
    stSql = "SELECT * FROM [Switchboard Items] "
    stSql = stSql & "WHERE [SwitchboardID]=" & Me![SwitchboardID] & " AND [ItemNumber]=" & intBtn
    ...

我通过每部法律文件搜索,并检查了布顿的表格和指挥部的财产。 我还检查了档案和软件数据库的特性;当前数据库。

问题回答

奥基,我没有任何开关委员会(他们回到了2003年(20年前!))。

因此,我在此看到的唯一物体是:

该表称为[Switch板项目]。 正如你指出的那样,这张地方表格。

而有关例行公事则被认为具有激化价值(intBut)。 因此,我认为,在开关板上,有1至6顿。 我想看一下这些县的点击事件,最好(有目共.的)猜测是,每一点击事件都指上述例行事件,并穿透了称作IntBut的简单分类值。

因此,看看转板上的纽子的点击事件。 这将是一次宏观事件,或一次VBA点击事件。 因此,当被点击时,该纽扣事件可能称为你的上述例行活动,并且将简单的愤怒价值(所谓的隐蔽)传给这一职务。

So, what the posted code does is select from the table, and filters to a given intBtn id of some value.

转换板表将设有项目编号、项目提款等栏目。

因此,实际上,转换板是一种“数据驱动”形式,根据该表格,纽扣式选项从数据表中取而代之(在VBA中并非硬编码)。

Hence "me" in access code is the same as C# (and JavaScript) "this", which means the current context. In this case, "me" means the current form. We often use "me" in place of a hard coded form name like Forms!SwtichBoard!SomeControl value. And in vb.net, once again “Me” is used just like in VBA.

因此,使用“主题”可更改形式名称和形式! 因此,如果在你使用“me”时改名,就不需要改动代码。

因此,见上文:

[Me]!SwitchBoardID

因此,以上是现有记录的价值,按这一格式计算,因此,根据有关表格的当前记录,将建立一个总账管理人数据库。

我然后看见:

IntBtn.

看看功能名称,我们看到:

Private Function HandleButtonClick(intBtn As Integer)

因此,转换板上的密码(丁顿点击事件)必须穿透(如被点击的纽顿语为1-6)。

我看不出任何特定财产,或者说什么是“隐藏的”。

因此,仅仅铭记“me”的使用是指C#或Java 文本中的“意思”——它是指目前所涉物体,或当进入时,现为物体。 如前所述,vb.net也使用“me”。

因此,以下各点都是一样的:

Forms!SwitchBoard!ID    -- gets current ID of the form (record or control)
Forms("Switchboard")!ID
Me!ID

因此,该法典的译文?

Please get me the current row from a given switch board number, and then filter to an intBtn choice.

因此,你可以设立多个开关委员会(类似于主要菜单),然后,你可以作出若干选择(1-6或任何选择,并且具有内在价值。

因此,不清楚你所期望的“财产”是什么。

如果你把表格装到任何数据表上,那么我! 一些DataBaseColumn是法律辛迪加,仅指以目前的形式归还目前的“栏目”。 因此,这些财产不以形式存在,但必须在相关表格的表中存在。

以上意思是,你可以在密码上列/使用/欢迎数据库栏,无需在格式上加以控制,才能使用这些数据栏目。 只要数据一栏在数据来源表格(基本表格)中存在,那么你就可以使用这种数据库栏目,而不必存在或以这种形式制造任何控制或甚至财产,才能使用该数据库一栏。 因此,表格数据来源(约束数据表)界定了这些表述是否合法。

因此,Me!Some 数据基一栏按现有表格提及现有记录,然后指数据库表中受该表格约束的一栏。





相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

Outlook 2007 CommandBarControl.Execute won t work

I recently switched to Outlook 2007 and noticed that my VBA-macros won t work. I use the following code to open a new appointment-item (and fill it automatically). It worked perfect in Outlook 2003, ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

热门标签