Update Queries don't work in form

R

Ron

I have a form with queries that update several fields to null.
I split the database with the splitter in access and placed the backend (
the Tables) on a server running XP and the Front end ( Queries and Forms) on
a work station running Vista.

Now I go to run a query I get the message "Operation must use an Updateable
Query"

I pressed the Help Button and the only things applicable were the item
dealing with permissions I checked them on both the FrontEnd and BackEnd and
I have full control permissions for both.

I even created a new Update Query and it doesn't work.

Anyone have any ideas?

TIA
 
J

John W. Vinson

I have a form with queries that update several fields to null.
I split the database with the splitter in access and placed the backend (
the Tables) on a server running XP and the Front end ( Queries and Forms) on
a work station running Vista.

Now I go to run a query I get the message "Operation must use an Updateable
Query"

I pressed the Help Button and the only things applicable were the item
dealing with permissions I checked them on both the FrontEnd and BackEnd and
I have full control permissions for both.

I even created a new Update Query and it doesn't work.

Not all queries are updateable. Perhaps you could open the query in SQL view
and post it here, along with an indication of what the Primary Key of each
table is, and what relationships are defined.

John W. Vinson [MVP]
 
R

Ron

here is the SQL for one of my Queries:

UPDATE SweetOrder SET SweetOrder.[Order] = No, SweetOrder.Qty = Null
WHERE (((SweetOrder.SKU) Is Not Null));

What I am doing is setting [Order], which is a Yes/No, to No and [Qty]
Which is an Integer, to Null, When the [SKU], which is text(6 Numbers), is
not Null.

This Table is not in any relationship.

This worked before I split the Database
 
J

John W. Vinson

here is the SQL for one of my Queries:

UPDATE SweetOrder SET SweetOrder.[Order] = No, SweetOrder.Qty = Null
WHERE (((SweetOrder.SKU) Is Not Null));

What I am doing is setting [Order], which is a Yes/No, to No and [Qty]
Which is an Integer, to Null, When the [SKU], which is text(6 Numbers), is
not Null.

This Table is not in any relationship.

This worked before I split the Database

That's bizarre! There's nothing whatsoever wrong with the query. In your split
database, do you in fact have the table named SweetOrder in the table list? If
you open the table datasheet directly is it updateable? Do you get any warning
or error message? What's the code which executes this query?

John W. Vinson [MVP]
 
R

Ron

Wekk I wasn't ready for that!!!
It says the recordset(The Table) is not updateable.

Now I am really confused. If everything was updateable before I split the
database, what happened to make them non-updateable????? And what do I do tp
get the tables updateable???

Thanks
--
Ron


John W. Vinson said:
here is the SQL for one of my Queries:

UPDATE SweetOrder SET SweetOrder.[Order] = No, SweetOrder.Qty = Null
WHERE (((SweetOrder.SKU) Is Not Null));

What I am doing is setting [Order], which is a Yes/No, to No and [Qty]
Which is an Integer, to Null, When the [SKU], which is text(6 Numbers), is
not Null.

This Table is not in any relationship.

This worked before I split the Database

That's bizarre! There's nothing whatsoever wrong with the query. In your split
database, do you in fact have the table named SweetOrder in the table list? If
you open the table datasheet directly is it updateable? Do you get any warning
or error message? What's the code which executes this query?

John W. Vinson [MVP]
 
R

Ron

I went to my Trusted Locations and Trusted the files where the FE and BE are
located.
I went in to each table and only three out of 13 were updateable.

I can not find anything in Access that talks about or indicares any this
about how an updateable table is created.

There has to be something??????
--
Ron


John W. Vinson said:
here is the SQL for one of my Queries:

UPDATE SweetOrder SET SweetOrder.[Order] = No, SweetOrder.Qty = Null
WHERE (((SweetOrder.SKU) Is Not Null));

What I am doing is setting [Order], which is a Yes/No, to No and [Qty]
Which is an Integer, to Null, When the [SKU], which is text(6 Numbers), is
not Null.

This Table is not in any relationship.
I went to my Trusted Choices and put the file where the database is on the trusted list. I went and opened the BackEnd and It is updateable. I went back to the database FrontEnd and none of
This worked before I split the Database

That's bizarre! There's nothing whatsoever wrong with the query. In your split
database, do you in fact have the table named SweetOrder in the table list? If
you open the table datasheet directly is it updateable? Do you get any warning
or error message? What's the code which executes this query?

John W. Vinson [MVP]
 
J

John W. Vinson

I went to my Trusted Locations and Trusted the files where the FE and BE are
located.
I went in to each table and only three out of 13 were updateable.

I can not find anything in Access that talks about or indicares any this
about how an updateable table is created.

There has to be something??????

Have you Compacted the backend?
Have you implemented Access workgroup security on the database... and does
your account have privileges to these tables?

John W. Vinson [MVP]
 
R

Ron

No I have not compacted neither the front end nor the backend
No I have not implemebted Workgroup security
 
J

Jeanette Cunningham

Ron,
some suggestions: if you have already tried these, just post back and say
so.
Some queries can't be updated - for example if they use any group by clause
or distinct clause - have you checked this query for these 2 things?
If you change the query to a select query and switch to datasheet view, are
you able to add new records to it? If you can't then it is not updateable.

Jeanette Cunningham
 

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

Top