execute subroutine on subform

M

mcnews

how to execute a subroutine on a subform?
tried this and get errors:

Me.frmFreezerInventory.Form.FillSlots(0)

is there a way to do this?

tia,
mcnewsxp
 
D

Daniel Pineault

I'm not sure if I understood your question, hopefully I did.

Change your sub declaration from

Private Sub ....

to

Public Sub ....


Then you be able to refer to it (Call it elsewhere).
 
M

mcnews

I'm not sure if I understood your question, hopefully I did.

Change your sub declaration from

Private Sub ....

to

Public Sub ....

Then you be able to refer to it (Call it elsewhere).
ah, of course!

except now i get run-time error '13' type mismatch.

i passing and Integer as expected....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top