Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call a Function from a Query

Status
Not open for further replies.

LarryDeLaruelle

Technical User
May 19, 2000
1,055
US
Is it possible to call a function from a query?<br><br>I need to categorize a lengthy list of codes into common groups for cross tabs and thought a function would be the best way to go for several reasons, especially the probable need to reuse the code in other queries.<br><br>Every time I have tried to do this I get an undefined function message.<br><br>Any idea what I may be doing wrong? <p>Larry De Laruelle<br><a href=mailto:larry1de@yahoo.com>larry1de@yahoo.com</a><br><a href= > </a><br>
 
Do you have the following syntax?<br><br>=FunctionName()<br><br>Also, make sure it is not a sub in the module, and that the function is public.<br> <p>Jim Lunde<br><a href=mailto:compugeeks@hotmail.com>compugeeks@hotmail.com</a><br><a href= Application Development
 
Thanks Jim:<br><br>I think I figured out my problem.&nbsp;&nbsp;I had named the module and the function the same name.&nbsp;&nbsp;Once I corrected that it now works fine.<br><br>This is a neat feature that will save me a ton of time. <p>Larry De Laruelle<br><a href=mailto:larry1de@yahoo.com>larry1de@yahoo.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top