0
我是VBA和Access的新手,我試圖隱藏一個基於tsql數據庫中的位域的按鈕,當我評論執行查詢的代碼行時,訪問表單加載罰款,當我取消註冊,它崩潰..請幫助!我不確定我做錯了什麼。運行sql查詢時訪問頁面崩潰
Private Sub Form_Activate()
DoCmd.Maximize
Dim RecordSt As Recordset
Dim dbase As Database
Dim query As String
query = "select * from tblsetup;"
Set RecordSt = dbase.OpenRecordset(query) 'Line of code that crashes page
'If RecordSt.Fields("ValidateChecks").Value = 0 Then
'cmdValidate.Visible = False
'Else
'cmdValidate.Visible = True
'End If
末次
這奏效了。謝謝!定時器耗盡時將標記爲答案。 – Bcbury