I have a function that I want to use to sort records by in a module in my Access database. When I use the function in a query in an ASP page eg SELECT .. FROM .. ORDER BY myFunc([field1]) I get an &#039undefined function&#039 error.<BR>I assume this is due to some sort of scoping problem, do I have to prefix the function name with something like Module1 or is the problem something else?<BR><BR>Thanks<BR><BR>James Levick<BR>levibro@ihug.co.nz