G
Guest
Hello,
I'm trying to pass a table as parameter for a function. Her is my code:
Dim tabmine As TableDef
Set tabmine = Application.CurrentDb.TableDefs("tblanag")
Call Questionnaire.Collectdata(tabmine, Me)
I get an error "Object invalid or no longer set" and I have trapped that
what's wrong is in thw very first two lines (in the second one I would say).
BUt I cannot figured out what it could be.
I have surfed many posts in the forum and my code is not different from many
other.
DAOis referenced as well...
What's wrong (other than me obsession in trying to code VBA)?
Thansk,
Rocco
I'm trying to pass a table as parameter for a function. Her is my code:
Dim tabmine As TableDef
Set tabmine = Application.CurrentDb.TableDefs("tblanag")
Call Questionnaire.Collectdata(tabmine, Me)
I get an error "Object invalid or no longer set" and I have trapped that
what's wrong is in thw very first two lines (in the second one I would say).
BUt I cannot figured out what it could be.
I have surfed many posts in the forum and my code is not different from many
other.
DAOis referenced as well...
What's wrong (other than me obsession in trying to code VBA)?
Thansk,
Rocco