Runtime error '3009'

  • Thread starter Thread starter erick-flores
  • Start date Start date
E

erick-flores

Hello all

I have this application in Access 2003. I am getting this runtime
error '3009' when a user already have one of the table open. I know
what is the problem, I just need to know how to create and If
statement that says;

If the table is in used then
do not run query
else
run query
end if

The problem is, everytime the application is open a make-table query
is executed. So obviously if a user has the table open and in use,
another user will no able to run the make-table query because this
query delete the existing one to create a new/current one. That is why
I need to write an IF statement to manipulate this situation.

Can somebody help me to write the correct If stat please???
 
Hi erick-flores,

Why is your database creating a new table on open? If it is necessary for a
temp table or something, you need to split the database and give each user
their own copy of the front end, where they can create the temp table with
impunity.

Damian.
 
Hi erick-flores,

Why is your database creating a new table on open?
Because the table where I am pulling the data from is a link table, I
create a make-table query from this link table so it sits on the local
databse. I do this because I have multiple calculations (counts, sum,
avg, etc) between forms if I use the link table then the calculations
will take forever.

If it is necessary for a
temp table or something, you need to split the database and give each user
their own copy of the front end, where they can create the temp table with
impunity.

Damian.
I dont quite understand your suggestion here, how do I split the
database?


Thanks
 
OK, so I split the database but it didnt work, looks like my link
tables didnt work with the split database feature. Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top