K
Kevin
I had a problem similar to this recently and resolved it
by removing the record source of the form. Your VBA should
look something like the following:
dim MyRecSource as Variant
docmd.Echo False
MyRecSource = Forms.FormName.RecordSource
Forms.FormName.RecordSource= ""
run your query by which ever method you choose
Forms.FormName.RowSource = MyRecSource
docmd.Echo True
Be carefull with Echo, if you have a problem in code
between when you turn it off and when you turn it back on,
the application will appear to lockup. In this case, you
will have to kill the process and start back up.
I hope that helps!
Kevin
table "tblRequestedVersion" because it is already in use
by another person or process."
that wasn't true.
by removing the record source of the form. Your VBA should
look something like the following:
dim MyRecSource as Variant
docmd.Echo False
MyRecSource = Forms.FormName.RecordSource
Forms.FormName.RecordSource= ""
run your query by which ever method you choose
Forms.FormName.RowSource = MyRecSource
docmd.Echo True
Be carefull with Echo, if you have a problem in code
between when you turn it off and when you turn it back on,
the application will appear to lockup. In this case, you
will have to kill the process and start back up.
I hope that helps!
Kevin
queries, both initiated from the main form.-----Original Message-----
I need a subform to display results of two different
subform to read the resulting table.T have changed the queries to Make Table queries, and the
The database engine could not lockThe table exists.
When the first query is executed, "Run-time error '3211'
table "tblRequestedVersion" because it is already in use
by another person or process."
went straight to this form and command button to make sureI closed the database and access and re-opened it and
that wasn't true.