I have a database with many tables, queries and forms. The problem actually lies in one of the tables. This table has a field for which i had set previously as indexed and duplicates ok. But now when i change this property to no duplicates then my form becomes not updateable.
Actually a query is based on this table and the form in turn in based on this query.
Please help me solve this problem.
11 1779
I have a database with many tables, queries and forms. The problem actually lies in one of the tables. This table has a field for which i had set previously as indexed and duplicates ok. But now when i change this property to no duplicates then my form becomes not updateable.
Actually a query is based on this table and the form in turn in based on this query.
Please help me solve this problem.
What is the full sql of the query behind the form and which field are we talking about.
Mary
What is the full sql of the query behind the form and which field are we talking about.
Mary
The field is of data type number. The property of this particular field in the table was initially set as Indexed : Yes(duplicates ok). But now when i tried to change the property to Yes( no duplicates) then the form became not updateable. This table already has a primary key field.
There is a query based on this and another table. And based on the result of this query is the form. Now the form is un updateable.
I hope im clear ?.
The field is of data type number. The property of this particular field in the table was initially set as Indexed : Yes(duplicates ok). But now when i tried to change the property to Yes( no duplicates) then the form became not updateable. This table already has a primary key field.
There is a query based on this and another table. And based on the result of this query is the form. Now the form is un updateable.
I hope im clear ?.
I need the actual query. If you don't know how to get the sql then open the access query window and change the view to sql then just copy and past the query in here.
I will also need to know the name of the field in the query that we are talking about.
Mary
I need the actual query. If you don't know how to get the sql then open the access query window and change the view to sql then just copy and past the query in here.
I will also need to know the name of the field in the query that we are talking about.
Mary
The name of the table is Alumni. The name of the field in this table is ARTS_ID.
A query named ARTS-Alumni details Query is based on this table and two other tables. The query is as follows :
SELECT ARTSaddresses.Alumnicheck, Alumni.Alumni_ID, Alumni.ARTS_ID, ARTSaddresses.Country_ID AS Alumni_Country_ID, Alumni.LastAddressUpdate, Alumni.[Image?], Alumni.[Abstract?], Alumni.[cv?], Thesis.Entry_ID, Thesis.Graduationdate, Alumni.Gradyear_ID, Thesis.Thesistitle, Thesis.Abstract, Thesis.Supervisor_ID, Thesis.Cosupervisor_ID, Alumni.link1, Alumni.link2, Alumni.link3, Alumni.link4, ARTSaddresses.DateUpdated, ARTSaddresses.Clubcheck, ARTSaddresses.sex, ARTSaddresses.Title, ARTSaddresses.FirstName, ARTSaddresses.MiddleName, ARTSaddresses.LastName, ARTSaddresses.Address1, ARTSaddresses.Address2, ARTSaddresses.Address3, ARTSaddresses.City, ARTSaddresses.StateOrProvince, ARTSaddresses.PostalCode, ARTSaddresses.Country, ARTSaddresses.EmailAddressoff, ARTSaddresses.EmailAddresspriv, ARTSaddresses.HomePhone, ARTSaddresses.WorkPhone, ARTSaddresses.MobilePhone, ARTSaddresses.FaxNumber, ARTSaddresses.Picture, ARTSaddresses.Country_ID AS ARTSaddresses_Country_ID
FROM (ARTSaddresses INNER JOIN Alumni ON ARTSaddresses.ARTS_ID = Alumni.ARTS_ID) INNER JOIN Thesis ON ARTSaddresses.ARTS_ID = Thesis.ARTS_ID
WHERE (((ARTSaddresses.Alumnicheck)=True));
There is another query named Arts-Admin Database which is based on the above mentioned query , 3 more other queries and 1 table. The query is as follows :
SELECT [ARTS-Alumni details Query].[ARTS_ID], [Arts-club Member details Query].[ARTS_ID], [Arts-Student details Query].[ARTS_ID], [ARTS Advisor details query].[ARTS_ID], [ARTSaddresses].[ARTS_ID], [Arts-club Member details Query].[Member_id], [Arts-club Member details Query].[Join_date], [Arts-club Member details Query].[Resign_date], [Arts-club Member details Query].[Member_status], [Arts-club Member details Query].[Bank_name], [Arts-club Member details Query].[Account_no], [Arts-club Member details Query].[Bank_no], [Arts-club Member details Query].[Abbucherm], [Arts-club Member details Query].[confirmationsent?], [ARTSaddresses].[DateUpdated], [ARTSaddresses].[Alumnicheck], [ARTSaddresses].[Studentcheck], [ARTSaddresses].[sex], [ARTSaddresses].[Title], [ARTSaddresses].[FirstName], [ARTSaddresses].[MiddleName], [ARTSaddresses].[LastName], [ARTSaddresses].[Address1], [ARTSaddresses].[Address2], [ARTSaddresses].[Address3], [ARTSaddresses].[City], [ARTSaddresses].[StateOrProvince], [ARTSaddresses].[PostalCode], [ARTSaddresses].[Country], [ARTSaddresses].[EmailAddressoff], [ARTSaddresses].[EmailAddresspriv], [ARTSaddresses].[HomePhone], [ARTSaddresses].[WorkPhone], [ARTSaddresses].[MobilePhone], [ARTSaddresses].[FaxNumber], [ARTSaddresses].[Picture], [ARTSaddresses].[Country_ID], [Arts-Student details Query].[Entry_ID], [Arts-Student details Query].[MatrikelNo], [Arts-Student details Query].[Donor], [Arts-Student details Query].[Advisor_ID], [Arts-Student details Query].[Graduationdate], [Arts-Student details Query].[Thesistitle], [Arts-Student details Query].[Supervisor_ID], [Arts-Student details Query].[Cosupervisor_ID], [Arts-Student details Query].[Library_reference], [Arts-Student details Query].[Clubfee_first_term?], [Arts-Student details Query].[Clubfee_second_term?], [Arts-Student details Query].[Clubfee_third_term?], [Arts-Student details Query].[Clubfee_fourth_term?], [ARTSaddresses].[Clubcheck], [ARTS-Alumni details Query].[Alumni_ID], [ARTS-Alumni details Query].[LastAddressUpdate], [ARTS-Alumni details Query].[Image?], [ARTS-Alumni details Query].[Abstract?], [ARTS-Alumni details Query].[cv?], [ARTS-Alumni details Query].[Entry_ID], [ARTS-Alumni details Query].[Graduationdate], [ARTS-Alumni details Query].[Gradyear_ID], [ARTS-Alumni details Query].[Thesistitle], [ARTS-Alumni details Query].[Abstract], [ARTS-Alumni details Query].[Supervisor_ID], [ARTS-Alumni details Query].[Cosupervisor_ID], [ARTS-Alumni details Query].[link1], [ARTS-Alumni details Query].[link2], [ARTS-Alumni details Query].[link3], [ARTS-Alumni details Query].[link4], [ARTSaddresses].[Advisorcheck], [ARTS Advisor details query].[Advisor_ID], [ARTS Advisor details query].[Institute_ID], [ARTS Advisor details query].[Advisorwebsite], [ARTS Advisor details query].[Active], [ARTSaddresses].[Dropoutcheck], [Arts-club Member details Query].[ID_card?]
FROM (((ARTSaddresses LEFT JOIN [ARTS-Alumni details Query] ON [ARTSaddresses].[ARTS_ID]=[ARTS-Alumni details Query].[ARTS_ID]) LEFT JOIN [Arts-Student details Query] ON [ARTSaddresses].[ARTS_ID]=[Arts-Student details Query].[ARTS_ID]) LEFT JOIN [Arts-club Member details Query] ON [ARTSaddresses].[ARTS_ID]=[Arts-club Member details Query].[ARTS_ID]) LEFT JOIN [ARTS Advisor details query] ON [ARTSaddresses].[ARTS_ID]=[ARTS Advisor details query].[ARTS_ID]
ORDER BY [ARTSaddresses].[LastName];
And finally the form is based on this above query.
Starting with this query first. If you run it on it's own can you add a new record to the query? -
SELECT ARTSaddresses.Alumnicheck, Alumni.Alumni_ID,
-
Alumni.ARTS_ID, ARTSaddresses.Country_ID AS Alumni_Country_ID,
-
Alumni.LastAddressUpdate, Alumni.[Image?], Alumni.[Abstract?], Alumni.[cv?],
-
Thesis.Entry_ID, Thesis.Graduationdate, Alumni.Gradyear_ID, Thesis.Thesistitle,
-
Thesis.Abstract, Thesis.Supervisor_ID, Thesis.Cosupervisor_ID, Alumni.link1,
-
Alumni.link2, Alumni.link3, Alumni.link4, ARTSaddresses.DateUpdated,
-
ARTSaddresses.Clubcheck, ARTSaddresses.sex, ARTSaddresses.Title,
-
ARTSaddresses.FirstName, ARTSaddresses.MiddleName, ARTSaddresses.LastName,
-
ARTSaddresses.Address1, ARTSaddresses.Address2, ARTSaddresses.Address3,
-
ARTSaddresses.City, ARTSaddresses.StateOrProvince, ARTSaddresses.PostalCode,
-
ARTSaddresses.Country, ARTSaddresses.EmailAddressoff, ARTSaddresses.EmailAddresspriv,
-
ARTSaddresses.HomePhone, ARTSaddresses.WorkPhone, ARTSaddresses.MobilePhone,
-
ARTSaddresses.FaxNumber, ARTSaddresses.Picture,
-
ARTSaddresses.Country_ID AS ARTSaddresses_Country_ID
-
FROM (ARTSaddresses INNER JOIN Alumni
-
ON ARTSaddresses.ARTS_ID = Alumni.ARTS_ID)
-
INNER JOIN Thesis
-
ON ARTSaddresses.ARTS_ID = Thesis.ARTS_ID
-
WHERE (((ARTSaddresses.Alumnicheck)=True));
-
Starting with this query first. If you run it on it's own can you add a new record to the query? -
SELECT ARTSaddresses.Alumnicheck, Alumni.Alumni_ID,
-
Alumni.ARTS_ID, ARTSaddresses.Country_ID AS Alumni_Country_ID,
-
Alumni.LastAddressUpdate, Alumni.[Image?], Alumni.[Abstract?], Alumni.[cv?],
-
Thesis.Entry_ID, Thesis.Graduationdate, Alumni.Gradyear_ID, Thesis.Thesistitle,
-
Thesis.Abstract, Thesis.Supervisor_ID, Thesis.Cosupervisor_ID, Alumni.link1,
-
Alumni.link2, Alumni.link3, Alumni.link4, ARTSaddresses.DateUpdated,
-
ARTSaddresses.Clubcheck, ARTSaddresses.sex, ARTSaddresses.Title,
-
ARTSaddresses.FirstName, ARTSaddresses.MiddleName, ARTSaddresses.LastName,
-
ARTSaddresses.Address1, ARTSaddresses.Address2, ARTSaddresses.Address3,
-
ARTSaddresses.City, ARTSaddresses.StateOrProvince, ARTSaddresses.PostalCode,
-
ARTSaddresses.Country, ARTSaddresses.EmailAddressoff, ARTSaddresses.EmailAddresspriv,
-
ARTSaddresses.HomePhone, ARTSaddresses.WorkPhone, ARTSaddresses.MobilePhone,
-
ARTSaddresses.FaxNumber, ARTSaddresses.Picture,
-
ARTSaddresses.Country_ID AS ARTSaddresses_Country_ID
-
FROM (ARTSaddresses INNER JOIN Alumni
-
ON ARTSaddresses.ARTS_ID = Alumni.ARTS_ID)
-
INNER JOIN Thesis
-
ON ARTSaddresses.ARTS_ID = Thesis.ARTS_ID
-
WHERE (((ARTSaddresses.Alumnicheck)=True));
-
Ya im able to add a new record to this above query.
Ok, now check both of the following queries to see if you can add a record. I don't expect the first one to be updateable and I want to see if the second one is: -
SELECT [ARTS-Alumni details Query].[ARTS_ID],
-
[ARTSaddresses].[DateUpdated], [ARTSaddresses].[Alumnicheck]
-
FROM (ARTSaddresses LEFT JOIN [ARTS-Alumni details Query]
-
ON [ARTSaddresses].[ARTS_ID]=[ARTS-Alumni details Query].[ARTS_ID])
-
-
SELECT [ARTSaddresses].[DateUpdated], [ARTSaddresses].[Alumnicheck]
-
FROM (ARTSaddresses LEFT JOIN [ARTS-Alumni details Query]
-
ON [ARTSaddresses].[ARTS_ID]=[ARTS-Alumni details Query].[ARTS_ID])
-
Ok, now check both of the following queries to see if you can add a record. I don't expect the first one to be updateable and I want to see if the second one is: -
SELECT [ARTS-Alumni details Query].[ARTS_ID],
-
[ARTSaddresses].[DateUpdated], [ARTSaddresses].[Alumnicheck]
-
FROM (ARTSaddresses LEFT JOIN [ARTS-Alumni details Query]
-
ON [ARTSaddresses].[ARTS_ID]=[ARTS-Alumni details Query].[ARTS_ID])
-
-
SELECT [ARTSaddresses].[DateUpdated], [ARTSaddresses].[Alumnicheck]
-
FROM (ARTSaddresses LEFT JOIN [ARTS-Alumni details Query]
-
ON [ARTSaddresses].[ARTS_ID]=[ARTS-Alumni details Query].[ARTS_ID])
-
I ran both the above queries and both are un updateable.
I ran both the above queries and both are un updateable.
That's strange.
If you run the form query in full, is it updatable outside the form?
That's strange.
If you run the form query in full, is it updatable outside the form?
I guess you mean the query namely Arts-Admin Database on which the form is based.
No that query is not updateable. But once i change the property of that particular field in the table stated before back to Indexed : Yes (duplicates ok) then the updation problem vanishes.
I guess you mean the query namely Arts-Admin Database on which the form is based.
No that query is not updateable. But once i change the property of that particular field in the table stated before back to Indexed : Yes (duplicates ok) then the updation problem vanishes.
Obviously you are creating duplicate records. One of the tables you are joining in the final query has more than a one to one relationship with the Alumni table. If that table has more than one record for each record in the Alumni table then you can't include it in the form query. You will have to create a subform to allow the records for this table to be added. If you're not sure which table it is go to each one and in the ArtsID field or other foreign key (field on which you join) change the index to no duplicates. The table which won't allow you is the table which will need to go into a subform.
Mary
Sign in to post your reply or Sign up for a free account.
Similar topics
by: ren |
last post by:
Hello,
When I open with Access 2000 a .DBF table and try to modify the content of a
(random) record, I get the message 'This recordset is not updateable". And
indeed, I can't change the content...
|
by: dixie |
last post by:
I have a form full of subforms which bring summary information onto the form
from about 12 different tables. I am trying to get all of that summary
information (mainly numbers) into 1 large table...
|
by: jm |
last post by:
I have a simple query. It has two tables. If I open the tables
separately, I can add records. If I open them up together, the
recordset is not updateable. As best I know, this has never been a...
|
by: MNC |
last post by:
I'm using Access2002, and can't seem to get an updateable recordset going
:-(
What am I doing wrong, here's the code. The form's controls are not locked,
the recordset type is Dynaset (changing...
|
by: Edward |
last post by:
I've recently migrated the back end of one of my client's applications
from Access to SQL Server.
One of the forms is based on an Access query thus:
SELECT dbo_tblDistributionDetail.*,...
|
by: MGFoster |
last post by:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I want the recordset (rs) in the following function to be updateable.
How do I do it?
Even though the code is VBA I will be translating to VBS...
|
by: dd_bdlm |
last post by:
Please help this one is driving me mad! I have searched and read all
the topics on the error message I am receiving but none seem to apply
to me!
I have quite a complex query linking all parts...
|
by: Jan |
last post by:
Hi
I have a database that I use to keep track of the sales promotions that we
send to companies.
I normally send a mailing based on a subset of the companies in the database
(found using the...
|
by: Sim Zacks |
last post by:
I have a postgresql backend with an access front end and I am trying to
redefine the recordset of the form to use an ADO recordset. The problem is
that the CursorType always changes to...
|
by: jghouse |
last post by:
Everyone,
Hopefully you can help me with a little problem I am having.
I have a need to limit the records shown in a form by a few different criteria. I also need these records to be editable....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |