Reputation: 827
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
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
QUESTIONS
Upvotes: 0
Views: 655
Reputation: 827
Nevermind, I am a dummy.
Due to the similar naming convention of the button name and the macro, MS Access was throwing an error.
I've updated the button name to "reviewCatalogs" (from "reviewCatalog"). After updating the button name and the Public Sub to Public Sub reviewCatalogs_Click()
, the script worked.
Upvotes: 1