Re: Why has my query become read-only?
- From: Erin <Erin@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Mar 2009 11:00:16 -0700
Thanks, John. This is useful advice. I don't have a vast wealth of Access
skills but have built and am trying to maintain a publishing database that
organizes information about our books into five broad categories (general pub
details, acquisitions info, marketing info, editorial & production info, and
rights & permissions info). The tabbed form seems like the best format in
which to present all the data together, but I wasn't aware of the potential
pitfalls of basing it on one great master query. I haven't heard of subforms
before, but will look into this as a potentially better option.
In terms of my old query and form (which did allow data updating), I do now
remember that in the midst of editing some of my tables, I removed a field
that we determined was unnecessary, and a message box popped up saying I was
going to delete an affiliated index or something like that. I didn't know
what this meant but seeing as all the tables had a primary key defined, I
didn't think it was of grave concern, so went ahead and deleted the field.
Perhaps this is what's causing me the problem now?
I appreciate everyone's efforts in helping me!
Erin
"John W. Vinson" wrote:
On Mon, 16 Mar 2009 08:47:04 -0700, Erin <Erin@xxxxxxxxxxxxxxxxxxxxxxxxx>.
wrote:
I am working with Microsoft Access 2003. I have a tabbed form which is based
on a simple query. The query is based on five tables. Previously, I could
edit data directly on the tabbed form, but now I can't (I can't add any new
records, either). It's important to note that I have recently recreated both
the query and the form, but as far as I can tell I did not do anything
differently this time around--properties are all the same as the old version.
The SQL is as follows:
SELECT tblGenPubDetails.*, tblAcquisitions.*, tblMarketing.*,
[tblEdit&Production].*, tblRights.*
FROM tblAcquisitions INNER JOIN (((tblGenPubDetails INNER JOIN tblMarketing
ON tblGenPubDetails.BookTitle = tblMarketing.BookTitle) INNER JOIN
[tblEdit&Production] ON (tblMarketing.BookTitle =
[tblEdit&Production].BookTitle) AND (tblGenPubDetails.BookTitle =
[tblEdit&Production].BookTitle)) INNER JOIN tblRights ON
([tblEdit&Production].BookTitle = tblRights.BookTitle) AND
(tblGenPubDetails.BookTitle = tblRights.BookTitle)) ON
(tblGenPubDetails.BookTitle = tblAcquisitions.BookTitle) AND
(tblAcquisitions.BookTitle = tblMarketing.BookTitle);
Any ideas? I can't for the life of me figure out why the query and form have
become read-only.
Many thanks in advance for any assistance you can provide,
Erin
Multitable queries are often non-updateable, and the more multi- the less
updateable, usually! It's VERY rarely a good idea to base a form on one Great
Master Query that joins everything, for this reason and others (for instance
you won't see any data at all unless all five tables have matching records,
and you'll see each record repeated as many times as in the "manyest" table).
Instead, consider using Combo Boxes for lookup tables, and Subforms for "many"
side tables. I don't know anything about the logic of your tables, but you may
have better luck basing a Form on the "one" side table, and Subforms (each on
a tab page) for the "many".
Since it once worked but now doesn't... what has changed? Did you change any
of the indexes or relationships in the tables, for instance? Or go to a new
version of Access?
--
John W. Vinson [MVP]
- References:
- Why has my query become read-only?
- From: Erin
- Re: Why has my query become read-only?
- From: John W . Vinson
- Why has my query become read-only?
- Prev by Date: Re: Why has my query become read-only?
- Next by Date: Re: Challenging analysis inquiry...
- Previous by thread: Re: Why has my query become read-only?
- Next by thread: Re: Why has my query become read-only?
- Index(es):
Relevant Pages
|