📜  Access - 打开表单非数据输入模式 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:36.993000             🧑  作者: Mango

代码示例1
Private Sub openRecBtn_Click()
    Dim numID As Long

    numID = InputBox("Please enter the ID : ")

    If DCount("*", "yourTable", "numberID = " & numID) <> 0 Then
        DoCmd.OpenForm "tmpFrmName", WhereCondition:="numberID = " & numID
    Else
        MsgBox "The numberID : " & numID & " does not exist, please try again !"
    End If
End Sub