Question : Updating date returned from SQL

Hi,

I have the following query on a forms Record Source:

SELECT tbl_companies.company_id, tbl_companies.company_name, tbl_addresses.address_line1, tbl_addresses.address_line2, tbl_addresses.address_line3, tbl_addresses.city, tbl_addresses.postal_code, tbl_contact_types.contact_type_desc, tbl_syscontacts.contact_title, tbl_syscontacts.contact_fname, tbl_syscontacts.contact_lname, tbl_syscontacts.job_title, tbl_syscontacts.department, tbl_syscontacts.work_phone, tbl_syscontacts.mobile, tbl_syscontacts.fax_number, tbl_syscontacts.contact_primary, tbl_businesstype.business_type
FROM tbl_businesstype INNER JOIN (((tbl_companies INNER JOIN tbl_addresses ON tbl_companies.company_id = tbl_addresses.company_id) INNER JOIN tbl_contact_types ON tbl_companies.contact_type_id = tbl_contact_types.contact_type_id) INNER JOIN tbl_syscontacts ON tbl_companies.company_id = tbl_syscontacts.company_id) ON tbl_businesstype.ID = tbl_companies.business_type_id;

I'm unable to edit any of the fields on my form populated from the SQL query.  Why is this?  How can i get around this?

Regards,
Tom

Answer : Updating date returned from SQL

Generally a Parent/Child relationship, and you apparently have between tblCompanies and tblSysContacts, would be represented with a Form/Subform. This way, Access will show all records in tblSysContacts for each record in tblCompanies, assuming you have the form(s) setup correctly.
Random Solutions  
 
programming4us programming4us