Results 1 to 9 of 9
  1. #1
    marcsessoms is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    6

    Popup form

    Hey guys.



    I am relatively new to Access 2010 and self-taught. I began a project from very few fields in one table in a MS SQL database. It has now grown to several forms and several tables. I am still in the process of "normalizing" the database.

    What I have run into is the 255 field limit in a query. The query selects records from different tables to populate a form with tab controls and sub-forms.

    After googling and reading I think a way to fix this for now is to use popup forms for specific form access when it is needed and not pull the information into the main form after the records is selected. I had also tried researching to see if a separate query for each tab would work as well.

    I am trying a popup form to test this theory. However, I am having an issue of the popup displaying the fields from the record I am currently on.

    Parent Form = frmProject
    SubForm/PopForm = frmPOC_Popup
    Parent/Child ID = ProjectID

    Any help would be appreciated.

    Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    I ran into that same limit (also limit on number of controls on a form) and resolved both with tab controls and subforms on the tab pages.

    Popup for new record will be harder to manage than the synchronized form/subform.
    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
    marcsessoms is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    6
    You know, I tried that because what I read was that subforms WAS the way to go. However after adding subforms to my tabs. Everything was good until I added a new field to my sql tables and refreshed my links. I then get the "Too Many Fields Defined Error". I assume this is from the query, which populates my main form and subforms and has reached the limit.

    Is there a trick to adding the subforms to each tab so that it isn't included in the main query?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Use separate queries for main and subforms. Each RecordSource should not have all the fields that are in the other.

    Master/Child links properties of the subform container control will synchronize related records.

    RecordSource can be set direct to table, doesn't absolutely have to be a query. You have set links to the SQL tables?
    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
    marcsessoms is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    6
    Please excuse my ignorance but I use the ODBC database wizard to create links to my tables and views. Once the table is added or refreshed I open my form. I then drag and drop my fields onto the form that I need. If it is a subform them I'll link the parent and child field by ProjectID.

    If I originally had the all fields on one form with no subfoms and I move most of my controls/fields to subforms, will Access remove those fields from the datasource or do I need to do that manually?

    (Hope that makes sense)

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Moving the controls will not modify the query or RecordSource. So, yes, you need to edit those. I don't mean edit the 'views' (that is a SQL query?) that are in SQL, unless you have to, I mean queries that are in Access that use the linked tables. My ignorance is showing. I haven't used other db's much.
    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
    marcsessoms is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    6
    And just to clarify, each subform will contain it's own query/Recordsource which should lower the number of fields that is in the original query/Recordsource query (after I edit it of course). This should eliminate my error of too many fields.

    If this works I'll owe you a steak dinner. I've been looking for a resolution for days with no definitive answer.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,920
    Yes.

    The main form and its subforms should not be bound to the same data. For instance, main form bound to Orders table and subform bound to OrderDetails. The Master/Child links on pk/fk fields will synchronize the related records.
    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.

  9. #9
    marcsessoms is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    6
    Thanks so much June. I'll try it and see how it goes.

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

Similar Threads

  1. form popup
    By fabiobarreto10 in forum Forms
    Replies: 30
    Last Post: 01-19-2012, 01:54 PM
  2. Popup form
    By triplee23 in forum Forms
    Replies: 1
    Last Post: 10-24-2010, 04:09 PM
  3. Popup Form
    By NISMOJim in forum Forms
    Replies: 1
    Last Post: 10-23-2010, 09:16 AM
  4. popup when opening a form
    By ajetrumpet in forum Forms
    Replies: 1
    Last Post: 10-08-2010, 09:33 AM
  5. Form-Subform-Popup Problem
    By TrudyD1474 in forum Forms
    Replies: 1
    Last Post: 06-10-2010, 05:36 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