English 中文(简体)
选择具体形式记录
原标题:Choosing specific record for form

在这种形式上,我创建了一个电网,几乎像一个小幅“小片”的纸张,每个月被打上。 这些“细胞”中的每一种是平方式的,我制造了我作为次表使用的微薄的平方式。

因此,我所想知道的是,哪一部法典(VB)用来管理一个特定的问题,而只是处理该询问中的具体记录? 例如,这些微薄的“贵重”形式中,每一个都构成一个组织,如果我管理一个最高级的Nth query,我就获得10个顶楼,不管怎样。 因此,就第一组单元而言,我想要管理选任考试,取得结果,只记录第一个记录。 接下来是第二位,是同一个问题,只与第二个记录合作,等等。

它是我 little爱的一点,但会给他们确切地说他们想要的东西,而我所不相信的那一部分是“我想要在律师协会中使用的确切记录”。

最佳回答

您可以将每一次表格的坐标表改为:

SELECT TOP 1 ID, F1, F2 From Table

SELECT TOP 2 From Table WHERE ID NOT IN (SELECT TOP 1 ID From Table)

SELECT TOP 3 From Table WHERE ID NOT IN (SELECT TOP 2 ID From Table)

<...>

SELECT TOP 10 From Table WHERE ID NOT IN (SELECT TOP 9 ID From Table)

或者,如果看到你已经存在某种奇怪的设置,你可以使用记录单向10个隐蔽的文本箱控制之一撰写每份身份证,并利用这些文本箱中的每一份作为主线,将国际发展法与儿童发展网联系起来。

外地和联系儿童领域是次制控制的财产,而不是形式。

alt text http://ltd.remou.com/linkchildlinkmaster.png

问题回答

如果我正确理解你的要求,那么就能够这样做。

www.un.org/Depts/DGACM/index_spanish.htm 表 结构:

ID Autonumber,
Col1 Text

<><0>>

Private Sub Command0_Click()
Dim rec As Recordset
Dim id As Integer

    Set rec = CurrentDb.OpenRecordset("SELECT TOP 10 * FROM Table1")

    While Not rec.EOF
        id = rec.Fields("ID")
        rec.MoveNext
    Wend
End Sub

您将发言视为假冒定义 表,即一套记录(RecordSet),如是表格,可加以操纵。

Dim cnn As ADODB.Connection
Dim pseudoTable As ADODB.Recordset
Dim strSQL As String

    Set cnn = CurrentProject.Connection
    Set pseudoTable = New ADODB.Recordset

    strSQL = "SELECT Title FROM realTable where realID < 1000;"
    pseudoTable.Open strSQL, cnn, adOpenStatic, adLockOptimistic
    If Not pseudoTable.BOF And Not pseudoTable.EOF Then
        pseudoTable.MoveFirst
        Do Until pseudoTable.EOF
              do something with the table
            pseudoTable.MoveNext
        Loop

上述法典应当给你一个良好的开端。





相关问题
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 ...

热门标签