Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / February 2004

Tip: Looking for answers? Try searching our database.

Linked Excel Spreadsheet - cannot edit query!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ste - 07 Feb 2004 10:32 GMT
hi wondered if anyone could help?

I have an Access database in which I use 4 linked tables
(which are linked to Excel spreadsheets).  I have a query
pointing to two of the spreadsheets and a normal table.  
The problem I have is that I cannot edit or add to the
data stored in the access table.  Does anyone know the
problem?

Ste
Ste - 07 Feb 2004 11:19 GMT
I've tried removing the linked tables and importing them
instead, but I have the same problem.  So it seems not to
be a problem with linked tables but the query itself.

Ste

>-----Original Message-----
>hi wondered if anyone could help?
[quoted text clipped - 8 lines]
>Ste
>.
John Vinson - 07 Feb 2004 22:53 GMT
>I've tried removing the linked tables and importing them
>instead, but I have the same problem.  So it seems not to
>be a problem with linked tables but the query itself.
>
>Ste

Please post the SQL of the query. A four-table query will be very
unlikely to be updateable; a two-table query will be updateable ONLY
if you have a Primary Key or other unique index on the linking field
on the "one" side of the query, and an index on the linking field on
the "many" side - and Excel spreadsheets don't have indexes!

                 John W. Vinson[MVP]    
   Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
Tim Ferguson - 07 Feb 2004 18:22 GMT
> I have an Access database in which I use 4 linked tables
> (which are linked to Excel spreadsheets).  I have a query
> pointing to two of the spreadsheets and a normal table.  
> The problem I have is that I cannot edit or add to the
> data stored in the access table.  Does anyone know the
> problem?

Whether or not recordsets are updateable is a wondrous piece of black magic
that happens deep in the bowels of the Jet Engine, particularly with
complex queries. It is not uncommon for fields from one or more tables to
be editable and others not. With really large queries, it is sometimes just
not possible to make them entirely updateable anyway. Later versions of Jet
do better than earlier ones.

You can sometimes track things down by checking very carefully which PK
fields are present. You must have the PK of a record in order to be able to
edit its fields; on the other hand you need the FK in order to be able to
change the record used. An example:

 Students            EnrolledOn
 ========            ==========
 *StudentID >------- *StudentID
 FullName            *CourseID
 HomeAddress         FeePaid
 etc                 etc

Now, if you include both EnrolledOn.StudentID and EnrolledOn.CourseID, then
you can change which student is enrolled on the course. On the other hand,
you can't change anything about the student (i.e. the name or address)
unless you have Students.StudentID in the query.

Hope that helps a bit

Tim F
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.