Results 1 to 7 of 7
  1. #1
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Expanding a form's data fields

    Main form based on one table, 5 or so subforms for other tables. I've had a design goal (since 2003) of presenting commonly needed data on one screen/page. The one page printout caved a several years ago.
    With the most recent request for additional functionality, I have created several new subforms which display a subset of all of the data in the tables behind them. I've tried to present a pop-up, all data fields view for adding and editing records in the underlying table, but it comes up blank. I assume this is because the table is locked with the sub-form's query. There has to be a simple way to do this, but right now I'm heading toward massive property modification of the sub-form.
    Please help "The Elder" find the needed reference/example. I'm flunking my dementia test.


    Thanks.
    Hertfordkc

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    You may get more responses if you show your tables and relationships.

  3. #3
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Table relationships

    PersonalData (Acctno, name, address, phone.......)
    Payhistory(Acctno, Assessment, Paydate, Payment, ....)
    Financial(Acctno, lots, utilities)
    SwimTags(Acctno, Tag#, SwimmerName, contact, contact Phone.....)
    .....................................
    The tables are linked on acctno.
    In the main form, all of the data from the personal data is displayed. Some of the subforms displayed the applicable records, i.e. linked on acctno, containing all fields in the underlying table. However, for the swim tags, I'd like to display only the Tag# and Swimmer Name in a non-editable subform. If a user wants to see all of the details of the swimmer records for the account, or to edit or add a record, he clicks on the subform caption and the entire, editable detail should appear.
    The expanded form comes up empty. None of the appropriate records appear. Is that happening because the subform has locked the underlying table? (The other subforms do not expand the underlying table.)
    Any workaround or suggestion would be appreciated.
    Hertfordkc

  4. #4
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Thanks, Orange, for your suggestion.

  5. #5
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    What is the primary key of PayHistory for example? Or Financial? It doesn't look like you have one. Acctno needs to be the FOREIGN key in the 3 other tables from PersonalData.

  6. #6
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    Bob,
    Perhaps I've missed a fundamental point in keys, but each of the tables is defined and includes an ACCTNO field. In "Table Relationships", the ACCTNO is linked between the tables.
    I believe that ACCTNO in the Personal Data table was defined as a primary key in earlier versions of Access, but, if it was, the definition was lost when importing to Access 07.
    Thank you for any advice, suggestions or critique.
    Hertfordkc

  7. #7
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    The ACCTNO right as it is can't be the primary key in the other 3 tables or else you can only have ONE record EVER for an ACCTNO in the 3 other tables.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-01-2011, 09:32 AM
  2. Expanding Memo Field in Form
    By AKQTS in forum Forms
    Replies: 3
    Last Post: 07-26-2010, 08:51 AM
  3. Replies: 2
    Last Post: 03-16-2009, 12:19 PM
  4. can't enter data in some form fields
    By ashiers in forum Forms
    Replies: 1
    Last Post: 09-18-2008, 12:37 PM
  5. Reports- Auto Expanding Fields
    By mojo53777 in forum Forms
    Replies: 1
    Last Post: 01-10-2008, 05:53 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