cozmo_troll
asked on
Access Queries - Can't Update Some Information
I am working on a query that has several different tables involved. Is there a way to make the query let me update information for specific data? It lets me update fine until a point where I add a specific table and then it locks everything up.
The number of tables is not important although I'm sure there is a limit. I have updateable queries with more than 10 tables. What is important is the relationships between the tables. Generally in an updateable multi-table query, the tables are all in the same hierarchical path although you can include lookup tables. Where you are probably running into trouble is by including a sibling table. For example, You have three tables. Students, Classes, and Vehicles. A student takes many classes. A student has one or more vehicles. But, even though both Classes and Vehicles are related to Students by StudentID, they have nothing to do with each other and including both child tables in the same query would create a non-updateable query and would "duplicate" rows also since you would end up with a row for every combination of Class and vehicle. So you have Math, Scooter; Math, Car; Math Bicycle; English, Scooter; English, Car; English, Bicycle; Science, Scooter; Science, Car;......
ASKER
OK, I am working with a similar situation only for shipment tracking. Can you suggest a way to get around the result or if it just matter of fact that this will not work?
Get around what? Are you trying to create a query that doesn't make sense like the one I described above with classes and vehicles? Just because they are both related to students doesn't mean that it makes sense to include them in the same query. We need to see your schema and may need a better description of what you need to do.
ASKER
I did look at the Recordset and it was already set to Dynaset
ASKER
Our situation is this:
We have Mother Orders, Children Orders, Mother Shipments, and Children Shipments. Children Orders from many Mother Orders can ship on one Child Shipment. I was looking for a way to pull a Query or a Form based on a Query that would let me update shipment information but at the same time view order information for that shipment.
We have Mother Orders, Children Orders, Mother Shipments, and Children Shipments. Children Orders from many Mother Orders can ship on one Child Shipment. I was looking for a way to pull a Query or a Form based on a Query that would let me update shipment information but at the same time view order information for that shipment.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if you are using a form, try setting the form's RecordsetType property to Dynaset (Inconsistent Updates).
see this link for possible solution