J
Johnny Meredith
Hi all,
I've created a database (small) that queries another database (huge)
based
on values looked up by the user. The first database creates
a DAO recordset based on data in the second, and then loops through
it and populates a table in the first database.
There is a form in the first database I use to display the results
to the user. It's opened in datasheet mode. When the code
executes the docmd.openform "x" line, it throws an exception.
I click debug, break to this line, and hit play. The second time
it works without problems.
Inserting a doevents line does not fix the problem. Does anyone
have an idea what might be causing this? This database is
extremely simple (it's a one-off for someone), and I'm sure that
I've done this before and never seen any errors like this.
Side note: the user on this computer does not have admin rights.
I'm getting a series of other weird errors that look user-rights
related. I tried to trap this
error (by simply reexecuting the docmd line, and Access went into an
infinite loop. Again, manual reexecution solves the problem.
Both databases are Access 2000
Windows XP Pro Ops.
Thanks,
Johnny
I've created a database (small) that queries another database (huge)
based
on values looked up by the user. The first database creates
a DAO recordset based on data in the second, and then loops through
it and populates a table in the first database.
There is a form in the first database I use to display the results
to the user. It's opened in datasheet mode. When the code
executes the docmd.openform "x" line, it throws an exception.
I click debug, break to this line, and hit play. The second time
it works without problems.
Inserting a doevents line does not fix the problem. Does anyone
have an idea what might be causing this? This database is
extremely simple (it's a one-off for someone), and I'm sure that
I've done this before and never seen any errors like this.
Side note: the user on this computer does not have admin rights.
I'm getting a series of other weird errors that look user-rights
related. I tried to trap this
error (by simply reexecuting the docmd line, and Access went into an
infinite loop. Again, manual reexecution solves the problem.
Both databases are Access 2000
Windows XP Pro Ops.
Thanks,
Johnny