Share via

Passing parameters while calling VBA function from Macro producing error

Anonymous
2012-05-02T14:57:04+00:00

Hi,

I have implemented Functions for Standard Module in MS Access. Now I want to call these VBA functions from Macro using RunCode. I want to pass parameters declared using SetLocalVar. It is giving me error of "The object doesn't contain the Automation object 'varLineItemsTotal.'"

I don't know what is the issue with my code

MyFunction([txtID], varLineItemsTotal, varLineItemsPosted)

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments