4 replies
by timfox2
Yes - It's best to organise such functions in a module and make sure the function is defined as a public funtion. Use the Build button (the ... elipse) in the query design window to help show you the format required.
But be careful. I hope that you are using the user-defined function because Access doesn't already have the function that you require, but just be sure that the function is constructed so that it returns an appropriate string to your query and that posisble error conditions are handled - so that your query doesn't return dodgy recordsets.
by techrep
You call it just like you would any other function. For example:
select * from employees where myuserfunction() = true
by makita
Poster rated this answer.
by makita
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending