Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

A Form As a Field? =\

Discussion in 'Information Technology' started by jillian.calderon@gmail.com, Jul 28, 2006.

Tags:
  1. jillian.calderon@gmail.com

    jillian.calderon@gmail.com
    Expand Collapse
    Guest

    First, I have a main form. In this form you add all of the product
    information. Everything is happy. However, now, I need to add something
    else. I need to add Pricing History to the form in a special way.

    Pricing History has the following fields: Pricing ID, Product ID,
    Effective Date, MRC, and NRC
    Each Product will have, at most, five Pricing History entries.
    The Pricing History is displayed as a subform within the Product form.
    Does that make sense? Each Product will have it's own unique Pricing
    History subform.
    I haven't a clue on how I should begin. Can anyone help?

    Thanks,
    Jillian
     
  2. Loading...


  3. Ken Sheridan

    Ken Sheridan
    Expand Collapse
    Guest

    Jillian:

    Presumably you have a Products table with one row per product and a primary
    key ProductID column. Base your existing form, in single form view, on this
    table or better still a sorted query on the table. Then design a form in
    continuous form view based on a query on the PricingHistory table sorted in
    descending date order so the latest price appears first. Add a subform
    control to the Products form with the PricingHistory form as its Source
    object. With the main form in design view set the LinkMasterFields and
    LinkChildFields properties of the subform control to ProductID.

    Whenever you are at a record in the main form you'll see the pricing history
    records for just that product and when you enter a new row in the subform it
    will automatically be given the current ProductID of the main form's current
    record.

    Ken Sheridan
    Stafford, England

    "jillian.calderon@gmail.com" wrote:

    > First, I have a main form. In this form you add all of the product
    > information. Everything is happy. However, now, I need to add something
    > else. I need to add Pricing History to the form in a special way.
    >
    > Pricing History has the following fields: Pricing ID, Product ID,
    > Effective Date, MRC, and NRC
    > Each Product will have, at most, five Pricing History entries.
    > The Pricing History is displayed as a subform within the Product form.
    > Does that make sense? Each Product will have it's own unique Pricing
    > History subform.
    > I haven't a clue on how I should begin. Can anyone help?
    >
    > Thanks,
    > Jillian
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page