Access 2013 VBA: Complie error: Method or data member not found

前端 未结 2 698
广开言路
广开言路 2020-12-12 07:55

I am having an issue with a button on a 2013 Access form.

High level: I am making some regulatory forms, 1 is a service Request, the other is a complaint request. A

相关标签:
2条回答
  • 2020-12-12 08:12

    For future reference:

    Put Option Explicit at the top of each module.
    It enforces variable declaration and reports undeclared or misspelled variables/constants at compile time.

    To have this automatically in new modules, set the Require Variable Declaration option in the VBA Editor.

    And read: Debugging VBA Code

    0 讨论(0)
  • 2020-12-12 08:13
    Forms![Complaint Request Form].Form.Phone = Me.txtPhone
    

    should have been

    Forms![Complaint Request Form].Form.Phone = Me.txtPhoneNumber
    

    Sorry for wasting your time.

    0 讨论(0)
提交回复
热议问题