A
AdmiralXizor
I have written a function that executes action parameter queries given a name
and a list of parameters.
It splits a string into an array, passes the parameters to the (already saved)
query name, then runs the query using the Execute method, etc., then writes a
record to a table that logs the name of the table and whether the query works
or not.
The function has worked flawlessly for over a year; I have used it in ACC2000
and ACC2002, in multiple implementations, all without error. I used it with
ACC2003 a few months ago and implemented the app as an MDE. No issues.
However, in the last couple of days I have had a weird problem I’ve never
seen before. Certain saved queries have been failing when run by my function.
It is a random occurrence in that it does not seem to have any warning, but
it does only affect a few (at the moment, four) queries.
The weirdest part was the following:
After I had identified the queries that failed, I ran each one once, manually,
typing the same parameters that were passed by the function.
Not only did the query execute with no problem, once I ran the query using
the function again, the query ran fine!!!
I have programmed VBA in Access since Access 97 and have never seen this
happen before. Has anyone else? Any ideas?
and a list of parameters.
It splits a string into an array, passes the parameters to the (already saved)
query name, then runs the query using the Execute method, etc., then writes a
record to a table that logs the name of the table and whether the query works
or not.
The function has worked flawlessly for over a year; I have used it in ACC2000
and ACC2002, in multiple implementations, all without error. I used it with
ACC2003 a few months ago and implemented the app as an MDE. No issues.
However, in the last couple of days I have had a weird problem I’ve never
seen before. Certain saved queries have been failing when run by my function.
It is a random occurrence in that it does not seem to have any warning, but
it does only affect a few (at the moment, four) queries.
The weirdest part was the following:
After I had identified the queries that failed, I ran each one once, manually,
typing the same parameters that were passed by the function.
Not only did the query execute with no problem, once I ran the query using
the function again, the query ran fine!!!
I have programmed VBA in Access since Access 97 and have never seen this
happen before. Has anyone else? Any ideas?