Results 1 to 9 of 9
  1. #1
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231

    Form is asking for more parameters than I know I have programmed.

    Whenever Iopen the minutes form I am asked for two parameters, which is what I want. Then I am asked for 4 more parameters, probably for ther imbedded subforms, which I don't wnat, but do need the sub forms. How do I stop this. Sanitized DB attached.
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Your query maybe looking for a field that doesnt exist, or a form object spelled wrong or DNE.
    I'll look.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    The form is looking for PEIMSId , but its not in the query or mapped.

  4. #4
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    I know this. If I removed the sub forms the 4 PEIMS ID requests go away.

  5. #5
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It appears that you changed the name of one of the fields from "PEIMS ID" to "PEIMSId" (no space) in the "SDE" table.
    Therefore, the subforms are not linked to the main form.

    I edited the form "Minutes Header Form New" to relink the subforms, added combo boxes to the main form and edited the caption property for the form "Minutes Header Form New".

    There are many things that I think are going to bite you in the rear: using look-up FIELDS, using MVFs, using text fields as primary keys.
    Why 5 tables for "Minutes"?

    But as long as it works for you.....

    Good luck with your project....
    Last edited by ssanfu; 09-05-2014 at 03:53 PM. Reason: Oops, my bad. Changed MFV to MVF

  6. #6
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    The reason for five tables is I need 4 years of history; but this is the first year. I'm not wild about text as a primary key but the data I have to use is imported from a source that leaves something to be desired when it comes to data integrity. Help me here, why is using lookup fields an issue and what are MFV's (Munti Function Values?)?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Lookups with alias in table not advised, review: http://access.mvps.org/access/lookupfields.htm

    I think Steve meant MVF - Multi-Value Fields. I NEVER use MVF.

    Maintaining multiple years of data does not require separate tables and is actually poor design.
    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.

  8. #8
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    See: http://access.mvps.org/access/tencommandments.htm
    and http://access.mvps.org/access/lookupfields.htm

    Look up FIELDS hide the true value. Lets say you have a look up field with a field "ID" that is autonumber and a field "CompanyName" that is text.
    When you try and search, you enter the "CompanyName", because that is what you see. But you should be entering the "ID" field - the linking field.

    As far as MVFs (multi-value fields), they are very hard to work with (searching, reports). No experienced programmers (that I know of) use MVFs or look up fields.
    If you ever decide to up size (SQL Express,SQL server, Oracle, MySQL), you will have to re-write your dB because MVFs are unsupported in the major databases.


    The reason for five tables is I need 4 years of history;
    So what are you going to do in the 6th year? You are going to have to do a major modification to the dB. It would be better to have 1 table and add a field for the year - maybe name the field "HistoricalYear" or "WhatYear". Then it is a matter of searching 1 table not 5 tables.

    I do not have tables as form/report record sources.... I ALWAYS use queries for form/report record sources. It is easier to select the records I want using a query rather than a table. I know that you can set a filter on a form to limit records, but then how do you sort the records? Sooo much easier with queries.


    I'm not wild about text as a primary key but the data I have to use is imported from a source that leaves something to be desired when it comes to data integrity.
    And??? With an Autonumber PK, the data doesn't change - the Autonumber just ensures each record uniquely identified.
    Data integrity can be dealt with - if necessary, I set an index where duplicates are not allowed.


    Here are some sites on Autonumbers:
    Autonumbers--What they are NOT and What They Are
    http://www.utteraccess.com/wiki/index.php/Autonumbers

    Microsoft Access Tables: Primary Key Tips and Techniques
    http://www.fmsinc.com/free/newtips/primarykey.asp

    Use Autonumbers properly
    http://access.mvps.org/access/general/gen0025.htm


    I would also look at normalizing the tables. The "SDE" table has 91 fields.
    For example there are fields "PrimaryDisability", "SecondaryDisability", "TertiaryDisabilityy". These are known as repeating fields. What do you do if there is a 4th disability? These fields should be in their own table.

    Same goes for the fields: "RaceCode", "HispanicLatinoFlag", "AmericanIndianAlaskanNativeFlag", "AsianFlag", "BlackAfricanAmericanFlag", "NativeHawaiianPacificIslanderFlag", "WhiteFlag".

    And the "Minutes" table has 41 fields. I would look at moving the fields that begin with "TELPAS" to their own table.
    I realize that I don't know what90% of the fields mean, but it is easier to manage tables with fewer fields.


    BTW, you should only use letters, numbers and the underscore in object names. Never have spaces in names




    My $0.02..... for what it is worth...

  9. #9
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    Thanks for the tips and web sites.

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

Similar Threads

  1. Can Access be programmed to close itself?
    By dunc723 in forum Programming
    Replies: 2
    Last Post: 05-27-2014, 12:11 PM
  2. Replies: 16
    Last Post: 02-14-2014, 09:02 PM
  3. Replies: 1
    Last Post: 10-04-2013, 02:52 PM
  4. Getting parameters from a form
    By Abarency in forum Access
    Replies: 1
    Last Post: 10-19-2012, 11:38 PM
  5. Search form with Two parameters
    By karanvemuri in forum Forms
    Replies: 11
    Last Post: 10-03-2011, 06:26 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