query problem

J

John

Hi!
I use ASP to access the contents of an Access DB.Up till now my application
was workinf fine.
However, I decide to do some changes. So I copy all the files I use in
another directory and I changed the fields of my db.
Now, whenever I try to insert a new record or update an existing one I get
the following msg:
"Operation must use an updateable query"
I tried some simple queries for example to enter a new record with only the
key, but still doesn't work :-(

Any ideas?
Thnx in advance
 
J

John Vinson

Now, whenever I try to insert a new record or update an existing one I get
the following msg:
"Operation must use an updateable query"
I tried some simple queries for example to enter a new record with only the
key, but still doesn't work :-(

Certain queries are updateable, and others are not. Could you open the
query that you're trying to update in SQL view and post the SQL text
here? Someone may be able to spot the problem. I suspect you've joined
another table without having a unique index on the joining field, or
perhaps you have included a Totals operation (such as Count or Sum) in
the query - either of these will block updating.
 
S

Steve

in my experience, queries are updatable only when the
underlying tables are linked by primary to foreign
fields. check the fields that are used to link tables,
see if primary to foreign is the problem.
 

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