Results 1 to 7 of 7
  1. #1
    Amyfb is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    64

    Form from Query will not add or update table data; Form from Table works fine.

    I have yet to succeed at basing a useful form on a query built on two related tables. I can't find any good information to walk me through how it differs from a form from a table. I don't want to update or append from one existing table to another but I think I have to send the form data to a new table first, and that 's another process I can't find good resources to follow.



    Maybe I don't need to worry that I can't do it, but it is annoying the heck out of me that I can't figure it out.

    No problem with forms from tables and my simple needs can probably live with this.

    But my future could benefit with being smarter.

    Thanks in advance for your tips on resources.

    my db is too large to upload. sad face.
    Cheerios
    Amyfb
    Last edited by Amyfb; 03-19-2021 at 07:10 AM. Reason: adding db

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    is the form bound to the table/query? Thats all it takes to update/add data.

  3. #3
    Amyfb is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    64
    Quote Originally Posted by ranman256 View Post
    is the form bound to the table/query? Thats all it takes to update/add data.
    yes it is bound. it's a problem when the query has two related tables. the only field that will accept entry is the first one and auto ID field. all other fields are locked against entry.

    if it is just a query against a table alone, no problem, form works either way.

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Amy

    You would normally have a Main Form based on the Parent Table with a Subform based on the related Table
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  5. #5
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Is this a 1-to-1 relationship? If not can you describe your tables in question and post the sql?

    If so then the problem may be that you defined the 1-to-1 backwards. When defining a 1-to-1 in the relationship window make sure that you click and drag the primary key from the "independent table" to the "dependent table".

  6. #6
    Amyfb is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    64
    Quote Originally Posted by mike60smart View Post
    Hi Amy

    You would normally have a Main Form based on the Parent Table with a Subform based on the related Table
    Hmmmm, I thought I had tried that, but, I'm game to give it another whirl. Thanks!

  7. #7
    Amyfb is offline Advanced Beginner
    Windows 10 Office 365
    Join Date
    Mar 2021
    Posts
    64
    Quote Originally Posted by mike60smart View Post
    Hi Amy

    You would normally have a Main Form based on the Parent Table with a Subform based on the related Table
    Thanks again for the help, Mike. It's a nice hobby you have helping out us newbies!

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

Similar Threads

  1. Replies: 12
    Last Post: 06-08-2017, 12:28 PM
  2. Replies: 7
    Last Post: 08-16-2015, 10:10 PM
  3. Replies: 2
    Last Post: 12-07-2014, 10:03 PM
  4. Replies: 1
    Last Post: 11-14-2014, 05:12 PM
  5. Replies: 7
    Last Post: 06-10-2013, 12:40 PM

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