Results 1 to 9 of 9
  1. #1
    c.yyang is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2013
    Posts
    6

    Beginner thread, 1 problem when using forms

    I have a problem when adding items through 1 of the form
    i can add records to the table but not through forms

    In this file when i add a record through order form, it will show join key .....not in recordset error
    I have no problem when adding through other forms such as sandwich form

    I am new to this and I cant find a solution after few days
    please help me

    help.zip

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Can't enter data into multiple tables through the same query/form.

    Use a form/subform arrangement. Review http://office.microsoft.com/en-us/ac...010098674.aspx
    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.

  3. #3
    vincent-leeway is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    36
    Are you sure, if you have designed your tables properly?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Correction to my statement, can edit existing records of multiples tables through a single query for 1-to-1 relationships (I do this). But creating records in related tables through a single query/form does not work, regardless of the relationship type.

    Vincent, if you accomplish otherwise, please let us know how.
    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.

  5. #5
    vincent-leeway is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    36
    Quote Originally Posted by June7 View Post
    Correction to my statement, can edit existing records of multiples tables through a single query for 1-to-1 relationships (I do this). But creating records in related tables through a single query/form does not work, regardless of the relationship type.

    Vincent, if you accomplish otherwise, please let us know how.
    Now I understood your problem. Well to be honest, I have always used more than 1 query to create a new record or at the best use stored procedures. Never knew that some thing like this could be possible through single query! I would love to do some research to find out, if this is possible.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I have a database that tracks laboratory test results. Each sample can have multiple tests performed and the tests vary with type of sample. The easiest structure for data entry purposes is to have a table for each test performed. Sample is logged in and 'header' info goes into the Submit table then a single record for the sample is programmatically saved into individual test table for each selected test. Each test table has a 1-to-1 relationship with Submit table. Workcard is printed, lab techs do testing and enter raw data on workcard. Then the data is entered into db through a single form that has a RecordSource that is a query joining all the test tables to the Submit table. Because of the 1-to-1 relationship, all tables can be edited through one query. The db is not strictly normalized but it suits our requirements.
    Last edited by June7; 06-23-2013 at 10:48 AM.
    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.

  7. #7
    c.yyang is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2013
    Posts
    6
    Quote Originally Posted by June7 View Post
    Can't enter data into multiple tables through the same query/form.

    Use a form/subform arrangement. Review http://office.microsoft.com/en-us/ac...010098674.aspx

    thank you very much, i have solved my problem

  8. #8
    c.yyang is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2013
    Posts
    6
    I have solved the problem by using form wizard instead of just forms

  9. #9
    vincent-leeway is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    36
    Quote Originally Posted by c.yyang View Post
    I have solved the problem by using form wizard instead of just forms
    Nice to know that but did you manage to create new rows through single query?

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

Similar Threads

  1. How to mark a thread as solved
    By Matrix in forum Forum Suggestions
    Replies: 10
    Last Post: 12-12-2019, 06:55 AM
  2. Multi-record thread
    By MWilliams1188 in forum Forms
    Replies: 13
    Last Post: 11-09-2012, 05:13 PM
  3. Problem with tables (beginner)
    By alouest in forum Access
    Replies: 5
    Last Post: 04-05-2012, 12:08 PM
  4. for modorator. How do I UNSOLVE a thread?
    By newtoAccess in forum Forum Suggestions
    Replies: 2
    Last Post: 11-23-2009, 05:17 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