The table has several fields that are foreign keys on different tables.
Table Fields
ID = AutoNumber (Primary Key)
CID = Contract ID
EMPID_Sales = Initials of Sales person (Foreign Key Employee table)
EMPID_Support = Initials of Support person (Foreign Key Employee table)
C_Company = Company Name (Foreign Key Account table)
C_ContTermID = Term of Contract (Foreign Key ContTerm table)
C_FeeType = Type of Fee (Foreign Key FeeType table)
C_ContType = (Foreign Key ContType table)
C_Category = Category (Foreign Key AcctCategory table)
C_StartDate
C_EndDate
Etc.
Here is the query.
CODE
SELECT Contracts.ID
, Contracts.CID
, Employee.EMPID
, Employee_1.EMPID
, [Account Master].[Account Name]
, Contracts.C_StartDate
, Contracts.C_EndDate
, Contracts.C_EffDate
, ContTerm.ContTerm
, FeeType.FT_FeeType
, Contracts.C_SSPercent
, Contracts.C_Rate
, Contracts.C_Value
, ContType.CT_Type
, Contracts.C_Premium
, Contracts.C_Webinar
, AcctCategory.Category
, Contracts.C_Referral
, Contracts.C_Notes
FROM ((((((Contracts LEFT JOIN Employee ON Contracts.EMPID_Sales = Employee.EMPID)
LEFT JOIN Employee AS Employee_1 ON Contracts.EMPID_Support = Employee_1.EMPID)
LEFT JOIN [Account Master] ON Contracts.C_Company = [Account Master].ID)
LEFT JOIN ContTerm ON Contracts.C_ContTermID = ContTerm.ContTermID)
LEFT JOIN FeeType ON Contracts.C_FeeType = FeeType.FTID)
LEFT JOIN ContType ON Contracts.C_ContType = ContType.CT_Type)
LEFT JOIN AcctCategory ON Contracts.C_Category = AcctCategory.Category;
, Contracts.CID
, Employee.EMPID
, Employee_1.EMPID
, [Account Master].[Account Name]
, Contracts.C_StartDate
, Contracts.C_EndDate
, Contracts.C_EffDate
, ContTerm.ContTerm
, FeeType.FT_FeeType
, Contracts.C_SSPercent
, Contracts.C_Rate
, Contracts.C_Value
, ContType.CT_Type
, Contracts.C_Premium
, Contracts.C_Webinar
, AcctCategory.Category
, Contracts.C_Referral
, Contracts.C_Notes
FROM ((((((Contracts LEFT JOIN Employee ON Contracts.EMPID_Sales = Employee.EMPID)
LEFT JOIN Employee AS Employee_1 ON Contracts.EMPID_Support = Employee_1.EMPID)
LEFT JOIN [Account Master] ON Contracts.C_Company = [Account Master].ID)
LEFT JOIN ContTerm ON Contracts.C_ContTermID = ContTerm.ContTermID)
LEFT JOIN FeeType ON Contracts.C_FeeType = FeeType.FTID)
LEFT JOIN ContType ON Contracts.C_ContType = ContType.CT_Type)
LEFT JOIN AcctCategory ON Contracts.C_Category = AcctCategory.Category;
The query will be the data source for a form used to edit, manage and add new contracts. I suspect it is the joins that is causing it to be read-only. But if I do not have the joins then the controls on the form will show the ID# or primary key field data for those controls instead of the information I want to display. So instead of ABC Company it will show a number like 1902.
How do I design the query so that it is not read-only?
Thanks in advance for your help.
LAM