当我尝试编译时,我收到此错误消息“找不到方法或数据成员”。
这是代码:
Set db = CurrentDb
Set rec = db.OpenRecordset("Select * from SuppliersT")
rec.AddNew
rec("SupplierName") = Me.SupplierAddNameTxt
rec("Address") = Me.SupplierAddAddressTxt
rec("City") = Me.SupplierAddCityTxt
rec("ProvinceState") = Me.SupplierAddProvinceStateTxt
rec("PostalZip") = Me.SupplierAddPostalZipTxt
rec("Phone") = Me.SupplierAddPhoneTxt
rec("Fax") = Me.SupplierAddFaxTxt
rec("Email") = Me.SupplierAddEmailTxt
rec("Notes") = Me.SupplierAddNotesTxT
rec.Update
它突出显示 Me.SupplierAddNameTxt 在
rec("SupplierName") = Me.SupplierAddNameTxt
我在按钮所在的表单上有一个名为 SupplierAddNameTxt 的文本框,这就是我尝试将其设置为的原因。不知道它为什么这样做。帮助将不胜感激!