Results 1 to 12 of 12
  1. #1
    Progress2007 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    9

    Forms' Record Source


    Hi

    I have a form which has 7 tab buttons. There is one more main form which contains Add button. There are 7 diffrrent tables for each tab controls, relatiing with ID's

    When some one clicks on add button then i will opne my form which contains 7 tab buttons.

    Now i want that data can be popultaed for a new ID and i could save that data into 7 diffrent tables for a single click.It menas i have to assign a record source for this form that will contain all 7 tables fields.

    I am trying to use Record source as s query but could not able to save or enter data into this form.

    Will u great guyls provide me some code snippets to do this.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you saying you have 7 tables all related in a 1:1 relationship?

  3. #3
    Progress2007 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    9
    Quote Originally Posted by RuralGuy View Post
    Are you saying you have 7 tables all related in a 1:1 relationship?
    yes sir

    There are 7 tables all tables have there PID's

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    1:1 relationships are not very common and it is very unusual that you have 7 tables set up this way. You may want to review the design before proceeding.

  5. #5
    Progress2007 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    9
    Quote Originally Posted by RuralGuy View Post
    1:1 relationships are not very common and it is very unusual that you have 7 tables set up this way. You may want to review the design before proceeding.
    Ok sir. Tell me one thing if i am ignored 1to 1 relation ship.

    Now as i have just one form which has 7 tab buttosn.

    I want to get and save data to all seven tables ...how can i do this

  6. #6
    Progress2007 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    9
    Quote Originally Posted by Progress2007 View Post
    Ok sir. Tell me one thing if i am ignored 1to 1 relation ship.

    Now as i have just one form which has 7 tab buttosn.

    I want to get and save data to all seven tables ...how can i do this
    One more thing suppose We have to Create a Health application.
    First is detail section

    First tab is Detail of that Person.
    second tab is Contacts
    Third tab is abt Insurance
    Fourth tab is Scheduling
    and so on.........

    I can not include all the data into one table......for the sake of normalization......

    Please tell me how can i do this...........

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I would think that at least scheduling would be a 1:m relationship. It is not likely that you would have changes that affect all 7 tabs of your form at the same time. If you do then there is probably a problem with the design. Assuming each tab has a SubForm on it that is bound to a table through a query, then each tab will take care of itself and save when it needs to without any assistance needed from you. That is what bound forms are good at.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I did not intend to be stubborn and stop the conversation, but simply understand how you had constructed your form. There may be a much simpler solution.

  9. #9
    Progress2007 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    9
    Quote Originally Posted by RuralGuy View Post
    I did not intend to be stubborn and stop the conversation, but simply understand how you had constructed your form. There may be a much simpler solution.
    Hello sir

    As i earlier mentioned that i have a form which has 7 tab buttons...
    Now i can not createte sub form for each tab due to time constraint and some other req. ...

    so please suggest me a best possibel way....

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I have no solution other than having a SubForm on each tab. I believe you have a problem with your design that will continually complicate whatever you try until the basic design is revised.

  11. #11
    Progress2007 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    9
    Quote Originally Posted by RuralGuy View Post
    I have no solution other than having a SubForm on each tab. I believe you have a problem with your design that will continually complicate whatever you try until the basic design is revised.
    OK sir...With your advice i have created form for each tab. Now Please provide some guidance to me , how could i can bind these forms with record source...

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Don't you have a RecordSource for each form? Doesn't each control on each form have a ControlSource?

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

Similar Threads

  1. tabular forms - setting values per each record
    By Daytona675 in forum Forms
    Replies: 0
    Last Post: 11-25-2008, 09:43 AM
  2. Help record navigating in forms
    By edo in forum Forms
    Replies: 0
    Last Post: 08-12-2008, 10:45 AM
  3. Control source and calculated values
    By meistersteff in forum Forms
    Replies: 0
    Last Post: 11-23-2007, 07:04 PM
  4. Changing the record source in a form
    By lmichaud in forum Forms
    Replies: 1
    Last Post: 07-09-2006, 09:20 AM
  5. Replies: 2
    Last Post: 04-17-2006, 08:13 AM

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