Create an updatable unmatched query

I created an unmatch query using the wizard from two tables. Now it will not let me edit the information. Are there other ways to run this query so that I can edit the record?

The following is my query:

SELECT tblMoveTemp.ItemNo, tblMoveTemp.Size, tblMoveTemp.Source, tblMoveTemp.Loc, tblMoveTemp.SowDat, tblMoveTemp.Index, tblMoveTemp.Consolidate, tblMoveTemp.CutBack, tblMoveTemp.TransDat
FROM tblMoveTemp LEFT JOIN tblTemp ON tblMoveTemp.ItemNo = tblTemp.IMITEM
WHERE (((tblTemp.IMITEM) Is Null));

??

perennial
LVL 1
perennialAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

peter57rCommented:
Hi perennial,
If ItemNo is the primary key in both tables then you should be able to edit all fields except itemno.
I don't think you can ever change the primary key field in a query dynaset.

Pete

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Leigh PurvisDatabase DeveloperCommented:
That's true.
There's no obvious reason why that shouldn't be updateable.
Do both tables have a Primary key?

I suppose you could try the following - but if the above doesn't work - this might not either

SELECT tblMoveTemp.ItemNo, tblMoveTemp.Size, tblMoveTemp.Source, tblMoveTemp.Loc, tblMoveTemp.SowDat, tblMoveTemp.Index, tblMoveTemp.Consolidate, tblMoveTemp.CutBack, tblMoveTemp.TransDat
FROM tblMoveTemp
WHERE tblMoveTemp.ItemNo Not In (SELECT tblTemp.IMITEM  FROM tblTemp)
thenelsonCommented:
I too cannot see why it would not be updateable. I never seen a query created with the unmatched query wizard not be updatable. Did you try creating it again?

Right click in the top half of the query design view outside of the tables. Select properties. If recordset type is snapshot, change it to dynaset.

You will not be able to update tblMoveTemp.ItemNo unless cascade updates are on and it is not an autonumber field.

If you are using user level security, do you have permission to update the table and query?

Can you update the tables?

Type "When can I update data from a query?" in MSAccess help answer wizard for more information on when queries (datasets) are updatable or check this link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;304474#XSLTH4225121123120121120120
Get a highly available system for cyber protection

The Acronis SDI Appliance is a new plug-n-play solution with pre-configured Acronis Software-Defined Infrastructure software that gives service providers and enterprises ready access to a fault-tolerant system, which combines universal storage and high-performance virtualization.

perennialAuthor Commented:
ItemNo in this case it is not PK and both table does not have primary key.

??
Leigh PurvisDatabase DeveloperCommented:
Give both tables a primary key.
perennialAuthor Commented:
In this case I can not set the primary in both table, however your sql eariler is working. Let me get it another try and I will let you know.

Thanks for the help.

perennial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.