table fields not updating

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access Training and help » Table fields not updating from form/query entries | Access forum

Table fields not updating from form/query entries | Access forum

resolvedResolved · Urgent Priority · Version 2002/XP

Joe has attended:
Access Intermediate course

Table fields not updating from form/query entries

Dear BestSTL

(Please see accompanying screen shots sent in email to info@stl-training.co.uk)

I'm having trouble getting tables to update properly through a query (or through the form that uses the query). I know it has something to do with the type of table relationships and whether the query Recordset Type is set to Dynaset or Dynaset (Inconsistent Updates), but I can't see a consistent pattern.

According to the Access book I have, a query that encompasses more than two tables should have Recordset Type set to Dynaset (Inconsistent Updates) allowing data entry in any table. I was having just that problem: I couldn't enter data through a form using a large query, until I changed Recordset Type to Dynaset (Inconsistent Updates), then it worked fine (I think). I then changed all my queries Recordset Type to Dynaset (Inconsistent Updates) ... well, why not?

More recently I've split & reorganized many tables and it's through this I've noticed some problems with data not being written to tables properly.

Trial 1 (a query with one-to-one relationships only, Dynaset (Inconsistent Updates))
One query has a table (TBL_STORES) with only one-to-one relationships to many other tables (see Query Trial 1 query.gif). If I open the query and enter a new store, filling each field for the new record, all seems to work. When the query is closed and reopened, the record with the new store exists (in the field StoreName), but any field belonging to a related table is blank. When going to each of the related tables, the information I entered is there, but the Store_ID is missing, so there is no link back to TBL_STORES.

Trial 2 (a query with one-to-one relationships only, Dynaset)
Using the same query with Recordset Type set to Dynamic, and entering a new record in all fields, all works fine. So much for Dynaset (Inconsistent Updates).

Trial 3 (a query with multiple relationship types, Dynaset (Inconsistent Updates))
Another query has a table (TBL_STORES_Contacts) with different relationships to other tables (see Query Trial 2 query.gif). I created a new record and tried to enter values in every field ...
Problem 1. As soon as I tab out for the record I'm faced with the error "The field 'TBL_STORES_Contacts_AddressLine2_ID' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field"
Problem 2. Filling each field for the new record (except AddressLine2) all seems to all seems to work. When the query is closed and reopened, the record with the new contact exists but any field belonging to a related table is blank. When going to each of the related tables, the information I entered is there, but the Contact_ID is missing, so there is no link back to TBL_STORES_Contacts

Trial 4 (a query with multiple relationship types, Dynaset)
I created a new record and tried to enter values in every field ...
- It's not possible to enter anything in the field AltTel or AddressLine2
- When the query is closed and reopened, the record with the new contact exists but any field belonging to one of the five related tables on the left, is blank. Fields in TBL_STORES_Contacts_Addreses are populated correctly

How can I make this all work reliably?
Many thanks for any help as I have serious problems with data potentially being lost at the moment.
Joe

RE: Table fields not updating from form/query entries

Hi Joe,

Thank you for the forum question.

You have a lot of tables and relationships. It is difficult to help you with your problems without having your database. It will also take time to test all your relationships and queries and other objects in your database.

We can help you but this is outside the scope of this forum. If you want us to do the job you have to contact our sales team and they will look at the costs involved.



Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: Table fields not updating from form/query entries

Dear Jens,

I’m sure you’re in the loop with Daniel regarding this case.
I haven’t a reply from him since a week, so take this opportunity to resubmit my original question in a cut down (simpler) way – I hope you can help.

(Please see accompanying screen shot & example sent in an email to info@stl-training.co.uk)

I'm having trouble getting tables to update properly with a form (using a query as shown in the screenshot). I either can’t enter anything in the ADDRESS LINE 2 field, or after I do and tab out I get the error: "The field 'TBL_STORES_Contacts_AddressLine2_ID' cannot contain a Null value because the Required property for this field is set to True. Enter a value in this field."

How can I make the query accept an entry for field AddressLine2?
Is there something wrong with the way I’ve related the tables

Notes
- Several contacts from TBL_STORES_Contacts may share the same address in TBL_STORES_Contacts_Addresses
- I've created TBL_STORES_Contacts_AddressLine2 because there are hardly any entries and 'thought' it better to have a dedicated table than a field in TBL_STORES_Contacts_Addresses which is largely blank (correct me if this is wrong).

Best regards
Joe

Wed 21 Jan 2015: Automatically marked as resolved.

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Access tip:

Prefixed Autonumbering

When using Date Type = Autonumber as a primary key, clients may require autonumbering to be prefixed with a letter.

For example, P001, where P is the prefixed letter

Instructions
Step 1. Create Field Name
Step 2. Set Data Type to Autonumber
Step 3. Within Field Property General tabsheet,
enter Format property as [backslash]P000



View all Access hints and tips


Server loaded in 0.08 secs.