Advertisement

02.27.2008 at 08:13AM PST, ID: 23197330
[x]
Attachment Details

Cannot edit form data when record source references multiple tables

Asked by munequito in Access Forms

Tags: Access 2003

Hi Experts,
I recently modified a form such that its record source used to reference only one table, now it references multiple tables. As soon as I did, I could no longer add or modify data in the form. I notice another question on Experts Exchange dealing with the same issue that sits unresolved.
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Forms/Q_23099879.html
I find it hard to believe that Access has such a restriction, or that there is no way to resolve this issue.

Here is what I have in the database:
My database includes a movement_header table and a vessel_info table. Movement_header.vessel_id is FK to PK vessel_info.vessel_id. Other fields in the vessel_info table include vessel_name. Good database design dictates that the vessel_name does not belong in the movement_header table.

Here is what I HAD in the application:
The record source for my movement_header continuous FORM previously consisted of only one table, the movement_header table. At that time I was able to add and modify data in the form, but I could not soft the records by vessel_name, I could only sort by vessel_id. (Note: the row source for a combo box in the form is this:
SELECT [VESSEL_INFO].[vessel_index], [VESSEL_INFO].[VESSEL_NAME], [VESSEL_INFO].[VESSEL_TYPE] FROM [VESSEL_INFO] ORDER BY [VESSEL_NAME], [VESSEL_TYPE];

Here is what I NOW HAVE in the application:
Because I need to sort by vessel_name, the record source for my movement_header continuous FORM now includes multiple tables:
SELECT movement_header.*, vessel_info.vessel_name from MOVEMENT_HEADER, vessel_info where movement_header.vessel_id = vessel_info.vessel_index;
As soon as I implemented this, I was able to sort records in the form based on vessel_name, but I was surprised that I could no longer add or modify records in the form...basically rendering it useless.

My question is:
Is there a way that I can sort data in my continuous form by vessel_name and still have the ability to add and modify records? Or is Access truly incapable of doing this?

This looks like a difficult issue. Any input would be most appreciated.

Thanks,
GuyStart Free Trial
[+][-]02.27.2008 at 08:55AM PST, ID: 20995662

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Forms
Tags: Access 2003
Sign Up Now!
Solution Provided By: JimFive
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.27.2008 at 08:56AM PST, ID: 20995684

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.27.2008 at 09:06AM PST, ID: 20995801

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628