Solved

ACCESS 2003 Updateable query

Posted on 2012-04-10
2
263 Views
Last Modified: 2012-06-27
Why can't we update the data in the query when it runs.  It is not updateable.  It is based on two tables?

SELECT tblAbsentData.Date, tblAbsentData.UserID, tblAbsentData.Name, tblAbsentData.[Unplanned PDay Hours], tblAbsentData.[Occ Illness Hours], tblAbsentData.[Total STD/FML Hours], tblAbsentData.Team
FROM tblAbsentData INNER JOIN tblAbsentDate ON tblAbsentData.Date = tblAbsentDate.AbsentDate
WHERE (((tblAbsentData.Team)=[Forms]![frmVerifyTime]![cboTeam]) AND ((tblAbsentData.Uploaded)=No))
ORDER BY tblAbsentData.Name;



THANKS
0
Comment
Question by:eyes59
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 37828964
There are a number of reasons why a query might not be updateable.

Best list I've found is at:  http://www.allenbrowne.com/ser-61.html

This is the item that I think gets most of us:

The fields in a JOIN are not indexed correctly: there is no primary key or unique index on the JOINed fields.
0
 
LVL 21
ID: 37829009
<<Why can't we update the data in the query when it runs.  It is not updateable.  It is based on two tables?>>

It is common that multiple table queries are not updateable.

For a query to be upateable with multiple table you need to have the join using the primary key on one side. This is normally a One-to-many relationship.   In your case tblAbsentData.Date  or AbsentDate will need top be the primary key for the table.

Note: Date is the name of a VBA fucntion *reserved word)  and should not be avoided as field names.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question