Link unbound form to bound form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Papote
    New Member
    • Sep 2008
    • 7

    Link unbound form to bound form

    I have a database that in Table form it shows the subdatasheets that make refrence to the main table. It is basically a Menu ordering system. Goes something like this:
    MenuByCycle (Contains: Cycle and year), MenuByDay (Contains: Day), MenuByDiet (Contains: TypeOfDiets), FoodItemsByMenu (The actual menu items)
    That was my best attempt to normalize the database.
    Like I said in the beginning, in Table subdatasheet form I can view the sub tables and add values. I am trying to port this to Forms.
    I have made a form that filters (via Recordset) a subform to the FoodItemsByMenu table. I can view the subform (datasheet) by each type of filter, but I want to be able to link the foreign keys from the parent form so that I don't have to enter them repeatedly. The parent form is unbound since it is just to search by cycle, year, day and TypeOfDiet. This information filters the subform so it displays the FoodItemsByMenu table to view and input new records if necesarry.

    I tried using the same query as record source for the main form as it really doesn't matter, since it says can't build a link between unbound forms, and didn't work.

    Can I try a OpenArgs?
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32656

    #2
    I have to say I struggle to understand technically what you're doing (or more precisely how you're trying to do it).

    However, using OpenArgs is almost certainly worth trying if you need to (I would focus principally on getting a filter to work).

    Comment

    • FishVal
      Recognized Expert Specialist
      • Jun 2007
      • 2656

      #3
      Hello, Papote.

      Take a look at Add Matching Record on Filtered Form thread.

      Regards,
      Fish

      Comment

      Working...