Still strugling on this one

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Still strugling on this one

    Sorry for posting again, but i'm very much stuck :-(

    Here's the problem.

    I have three tables: Products - Retailers - Prices

    When i enter a new retailer they don't have any products.
    What i want to do is populate the new retailer with all of the productID's
    from the products table.
    I'm at the stage where i can enter a new retailer, create a session for the
    new retailer "UserID".

    Now i need to somehow enter all of the productID's into the retailer based
    on the session "UserID"

    I've read the one or two replies from previous posts, but can't get any of
    them working.

    Help! before i go bald(er)

    Andy



    Andy Guest

  2. #2

    Default Re: Still strugling on this one

    > Now i need to somehow enter all of the productID's into the retailer based
    > on the session "UserID"
    I think what you want is another table that connects retailers to products.

    -Darrel


    darrel Guest

  3. #3

    Default Re: Still strugling on this one

    Hi Darrel
    I do have a linking table that links the retailer with the products. This is
    the Price table.

    Thanks
    Andy


    "darrel" <notreal@hotmail.com> wrote in message
    news:d48grf$gof$1@forums.macromedia.com...
    >> Now i need to somehow enter all of the productID's into the retailer
    >> based
    >> on the session "UserID"
    >
    > I think what you want is another table that connects retailers to
    > products.
    >
    > -Darrel
    >
    >
    >


    Andy Guest

  4. #4

    Default Re: Still strugling on this one

    > Hi Darrel
    > I do have a linking table that links the retailer with the products. This
    is
    > the Price table.
    OK. Well, I'm not completely clear on what you are trying to do.

    So, when a person enters a new retailer into the retailer table, you then
    want to automatically enter a retalier+product relationship in the price
    table for every item?

    -Darrel


    darrel Guest

  5. #5

    Default Re: Still strugling on this one

    Andy

    If every retailer can sell every product then why are you creating this
    table anyway. It seem to me a pointless exercise unless you are going to
    limit them, or allow different prices.

    BTW did the code I posted not work.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
    news:d48gav$fut$1@forums.macromedia.com...
    > Sorry for posting again, but i'm very much stuck :-(
    >
    > Here's the problem.
    >
    > I have three tables: Products - Retailers - Prices
    >
    > When i enter a new retailer they don't have any products.
    > What i want to do is populate the new retailer with all of the productID's
    > from the products table.
    > I'm at the stage where i can enter a new retailer, create a session for
    the
    > new retailer "UserID".
    >
    > Now i need to somehow enter all of the productID's into the retailer based
    > on the session "UserID"
    >
    > I've read the one or two replies from previous posts, but can't get any of
    > them working.
    >
    > Help! before i go bald(er)
    >
    > Andy
    >
    >
    >

    Paul Whitham TMM Guest

  6. #6

    Default Re: Still strugling on this one

    Hi Paul
    Each retailer will have his/her own pricing structure.
    I tried your code but kept getting this error:

    Microsoft JET Database Engine (0x80040E0C)
    Command text was not set for the command object.
    /MyWebs/Dynamic Brochure/adm1n/new_retailer_populate.asp, line 16

    Line 16 is: set adoRs=adoCn.Execute(srtSQL)


    Thanks again
    Andy



    "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
    news:d4993s$n7l$1@forums.macromedia.com...
    > Andy
    >
    > If every retailer can sell every product then why are you creating this
    > table anyway. It seem to me a pointless exercise unless you are going to
    > limit them, or allow different prices.
    >
    > BTW did the code I posted not work.
    >
    > --
    > Regards
    >
    > Paul Whitham
    > Macromedia Certified Professional for Dreamweaver MX2004
    > Valleybiz Internet Design
    > [url]www.valleybiz.net[/url]
    >
    > Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    > [url]www.macromedia.com/support/forums/team_macromedia[/url]
    >
    > "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
    > news:d48gav$fut$1@forums.macromedia.com...
    >> Sorry for posting again, but i'm very much stuck :-(
    >>
    >> Here's the problem.
    >>
    >> I have three tables: Products - Retailers - Prices
    >>
    >> When i enter a new retailer they don't have any products.
    >> What i want to do is populate the new retailer with all of the
    >> productID's
    >> from the products table.
    >> I'm at the stage where i can enter a new retailer, create a session for
    > the
    >> new retailer "UserID".
    >>
    >> Now i need to somehow enter all of the productID's into the retailer
    >> based
    >> on the session "UserID"
    >>
    >> I've read the one or two replies from previous posts, but can't get any
    >> of
    >> them working.
    >>
    >> Help! before i go bald(er)
    >>
    >> Andy
    >>
    >>
    >>
    >
    >
    >


    Andy Guest

  7. #7

    Default Re: Still strugling on this one

    Looks like a typo in the line. It should be

    set adoRs=adoCn.Execute(strSQL)


    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
    news:d4b2sc$epa$1@forums.macromedia.com...
    > Hi Paul
    > Each retailer will have his/her own pricing structure.
    > I tried your code but kept getting this error:
    >
    > Microsoft JET Database Engine (0x80040E0C)
    > Command text was not set for the command object.
    > /MyWebs/Dynamic Brochure/adm1n/new_retailer_populate.asp, line 16
    >
    > Line 16 is: set adoRs=adoCn.Execute(srtSQL)
    >
    >
    > Thanks again
    > Andy
    >
    >
    >
    > "Paul Whitham TMM" <paul@valleybiz.net> wrote in message
    > news:d4993s$n7l$1@forums.macromedia.com...
    > > Andy
    > >
    > > If every retailer can sell every product then why are you creating this
    > > table anyway. It seem to me a pointless exercise unless you are going to
    > > limit them, or allow different prices.
    > >
    > > BTW did the code I posted not work.
    > >
    > > --
    > > Regards
    > >
    > > Paul Whitham
    > > Macromedia Certified Professional for Dreamweaver MX2004
    > > Valleybiz Internet Design
    > > [url]www.valleybiz.net[/url]
    > >
    > > Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    > > [url]www.macromedia.com/support/forums/team_macromedia[/url]
    > >
    > > "Andy" <AndyjhughesNOSPAM@ntlworld.com> wrote in message
    > > news:d48gav$fut$1@forums.macromedia.com...
    > >> Sorry for posting again, but i'm very much stuck :-(
    > >>
    > >> Here's the problem.
    > >>
    > >> I have three tables: Products - Retailers - Prices
    > >>
    > >> When i enter a new retailer they don't have any products.
    > >> What i want to do is populate the new retailer with all of the
    > >> productID's
    > >> from the products table.
    > >> I'm at the stage where i can enter a new retailer, create a session for
    > > the
    > >> new retailer "UserID".
    > >>
    > >> Now i need to somehow enter all of the productID's into the retailer
    > >> based
    > >> on the session "UserID"
    > >>
    > >> I've read the one or two replies from previous posts, but can't get any
    > >> of
    > >> them working.
    > >>
    > >> Help! before i go bald(er)
    > >>
    > >> Andy
    > >>
    > >>
    > >>
    > >
    > >
    > >
    >
    >
    >

    Paul Whitham TMM Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139