• Updating Query (XP)

    • This topic has 6 replies, 2 voices, and was last updated 17 years ago.
    Author
    Topic
    #450925

    I might be going about this totally the wrong way. What I am trying to do is
    FORM – NCR main entry screen This is the main styarting point.
    Tabs: NCR header – is where the starting info is placed when new file opened.
    Desc and Inst – is where the different types of problems go. Different files can have many different types of problems
    Sort information – This is where I am having a problem. I have already made a small subform to get the tag numbers from the 1st tab: (on a side note this might be wrong since I can open this and then make changfes to the tag numbers but this does not update…. I think I need to the something like Me.dirty but I can not remember right off.)

    What I am trying to do is have a table where the tag number is taken from the subform on the sorting page and the desc column is limited to only the desc found on the 2nd tab so in the end I have the following in the Sorting Info table

    Example of data wanted in table
    NCR Tag Description Rejects found
    2421 1 Parts not Flat 12
    2421 1 Nicks and dings 4
    2421 2 Parts not Flat 14
    2422 1 Part Too think 125
    2421 2 Nicks and dings 7
    2421 2 Burr on ID 11

    NCR should come from the opened file
    Tag should come from the subform on the tab
    Desc shoud be limited to the list in the 2nd tab : I made this a query. but when I try to make the table the inof is not shown.

    I have attached the file so this will make more sence,

    Viewing 1 reply thread
    Author
    Replies
    • #1108984

      I’d start by analyzing carefully how the subforms should be related to their parent form, and setting the Link Master Fields and Link Child Fields properties. Several of them don’t have these properties filled in.

    • #1108985

      You should also create relationships between the tables. In most cases the links between subforms and their parent forms will follow automatically from the relationships.

      • #1109069

        I am totally drawing a blank here… I know I am missing something very simple.
        You can slap me later…. The reason it was not working for me was that in the table I had an item set as a memo and was trying to make it a lookup… as soon as I set it back to text it worked…

        • #1109077

          I’m looking at your database, but it’s going to take some time to cut through the clutter.

        • #1109088

          Since you’ve already solved the problem, I won’t go into that. But you should clean up your database, there’s a lot of unnecessary clutter, for example subforms that serve no purpose, duplicate indexes etc. And check your spelling.

          A slightly straightened out version is attached.

          • #1109092

            Thanks a lot… a lot of that was cause by me trying to strip out info so I could make tyhe file smaller… You are always a great help… I dont know what I would do without you sometimes. and my spelling is very bad… That will get fixed on the last pass…

    Viewing 1 reply thread
    Reply To: Updating Query (XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: