normally to get a function to return a value you specify the function signature as follows
Function myFunction(passedParm as string) as String
' The as String after the closing parens denotes the type of data returned by the function and the fact that the function returns something
End Function
Remove the semi-colon ";" from the end of your assignment statement so that SqlStr = "SELECT Main.Name, Main.Date, Main.Action FROM Main WHERE (((Main.Name)=[forms]![Switchboard]![cobName]) AND ((Main.Date)=Date()))"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.