Sorry, the parameter query i am actually using does valadation etc... i only used the above code as an example because it creates the same annoying problem... The real module code is below:
Option Compare Database
Public Function inputPayNo() As String
Dim EmpMaster As ADODB.recordset
Dim...
I have a query (linked to a single table). I am using a public function to get a value to use as a parameter query...
Public Function InputTY() as string
Dim ITY as string
ITY = inputbox ("enter tax year")
InputTY = ITY
End Function
In the criteria box of the correct field i have...
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.