OBJECTIVE
Create a dashboard for the Marketing team to pull in product information (e.g product, customer, inventory, sales forecasts, etc.) for further analysis.
APPROACH
- Access Product, Inventory, and Sales databases.
- Create Query to join Product, Inventory, and Sales details.
- Create a simple UI for the Marketing team to interact with queried results.
CODE
simple script for the Marketing team to review a table, prior to query execution
Public Sub reviewCatalog()
DoCmd.OpenTable "Table - Active Customer Catalog", acViewNormal
DoCmd.OpenTable "Table - Active Product Catalog", acViewNormal
End Sub
call reviewCatalog() script from a button OnClick() event that is presented in a simple UI/Form
Public Sub reviewCatalog_Click()
Call reviewCatalog.reviewCatalog
End Sub
ERROR
Compile Error: Methor or data member not found
NOTES
- When the macro is run independently of a button click, the script runs without error.
- I've confirmed that the button assigned to the macro (called "reviewCatalog") is handling an "Event Procedure" for an OnClick event.
QUESTIONS
- What is the nature of the error being thrown? Why is it only occuring on the reviewCatalog_onClick() event (as opposed to other, similar buttons & scripts)?