Results 1 to 6 of 6
  1. #1
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124

    Howto add new record to form with related tables


    I have a query which is related by the ield contributorID for example Contributor table >>Address table>>PhoneNumber table>>Email table>>webURLS table. I can view the resulting data in the new form created using the query but I can't seem to get a new blank record for this form. I have set the DataEntry to Yes. Any help would be appreciated as it appears a simple problem but ....

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Have you tried opening the Query Object in datasheet view? I am referring to the query that is the RecordSource of your form. It seems you created an non-updatable query. While in DS view of a non-updateable query, you will not be able to add records.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    I'm pretty sure that ItsME is correct, here. The general rule-of-thumb is 'one Table/one Form,' as Forms based multi-table Queries will very often be Read-Only.

    The thing is that it looks like you've created the problem by taking normalization way too far! In most cases a person will have a single address, phone number, email and web address, and these should be included in the Contributors Table. Even if a contributor had several phone numbers, I'd be apt to include a couple of extra Fields in the Contributors Table to hold them.

    Separate Tables are called for when a given data component can have an infinite number of possibilities, if you will, that cannot be forecast in advance. If, for example, you needed to keep track of all contributions made by a given contributor, then you would need a separate Contributions Table, with contributorID as its Foreign Key. You'd base a Form on this Table, then use this Form as a Subform on the Main (Contributors) Form. You could then track each contributor, whether they made a single contribution or a hundred.

    And...you could add New Records or edit Existing Ones...which I'm sure you cannot do now.

    Linq ;0)>

  4. #4
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124
    The Address table and the phone table have multiple records for one contributor ID in tblContributor. SO if I want to add records to this related set of tables then I must add data to one relationship for example tblContibutor>>tblAddress then do for tblContributor>>Phone etc. IS this correct? So I can create a form linking related tables but I can't update the data

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Right, main form bound to tblContributor and subform(s) for the dependent records. Can arrange the subforms on pages of a Tab control or use Navigation form (I don't like it and never used it but you might like).
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    JrMontgom is offline Competent Performer
    Windows Vista Access 2010 32bit
    Join Date
    Sep 2012
    Location
    Vero Beach, FL USA
    Posts
    124
    Quote Originally Posted by June7 View Post
    Right, main form bound to tblContributor and subform(s) for the dependent records. Can arrange the subforms on pages of a Tab control or use Navigation form (I don't like it and never used it but you might like).
    Thanks or the help and by the way I have a Contributions table set up relationally as suggested by Missingling. Once again thanks for the input.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 12-14-2012, 04:21 PM
  2. Replies: 10
    Last Post: 07-18-2012, 03:42 PM
  3. Replies: 7
    Last Post: 07-02-2012, 10:50 PM
  4. One Form to Update 2 Related Tables?
    By zannix in forum Forms
    Replies: 3
    Last Post: 01-26-2012, 08:46 AM
  5. Not able to make Form from related Tables
    By a1y1a1y1 in forum Forms
    Replies: 5
    Last Post: 01-02-2010, 12:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums