Inserting Data into one table with category chosen from another table

Last post 04-08-2007 9:26 AM by semsem0. 3 replies.

Sort Posts:

  • Inserting Data into one table with category chosen from another table

    01-06-2007, 6:18 AM
    • Loading...
    • RuanRossouw
    • Joined on 12-09-2006, 10:22 AM
    • South Africa
    • Posts 10

    Hi,

     

    I am a novice programmer. I have this problem and can't seem to find an answer to my problem. I have two tables, an artist and a category table. the artist table have the following fields, name, artist_id and cat_id, and my category table have the following fields, cat_id and category_name. Both tables is connected to each other. 

     I would like to insert artist names, in form view, and choose the category from a drop downlist. I have no idea how to do this. Can anybody help me.

     

    Thank you,

     

    Ruan Rossouw
     

  • Re: Inserting Data into one table with category chosen from another table

    01-06-2007, 8:26 AM
    Answer
    • Loading...
    • e_screw
    • Joined on 10-20-2004, 1:22 PM
    • Women, Guitar, Russia, Billiards, Nature, .NET
    • Posts 3,852

    Check this link. It has got example of exactly what you are looking for with sample code.

    http://www.mikepope.com/blog/DisplayBlog.aspx?permalink=1423&count=no 

    Thanks

    -- mark as answer, if you are answered with this post! 

    Mark post(s) as "Answer" that helped you

    Electronic Screw
    Website||Blog||Dub@i.net
  • Re: Inserting Data into one table with category chosen from another table

    01-10-2007, 3:56 AM
    Answer
    • Loading...
    • RuanRossouw
    • Joined on 12-09-2006, 10:22 AM
    • South Africa
    • Posts 10

    Thank you. It helped a lot.

     

    Kind regards,

     

    Ruan Rossouw 

  • Re: Inserting Data into one table with category chosen from another table

    04-08-2007, 9:26 AM
    Answer
    • Loading...
    • semsem0
    • Joined on 12-26-2006, 3:28 PM
    • Egypt
    • Posts 136

    you can also

    in FormView Choose push the samr arrow edite template

    and in ansetr mode go to the category text box and add a dropDownList

     push the smart arrow again and shoose select data sourse

    then in the wizard windo select ur data source and then select the data that you want to be display and the value that u want to be enter the table.

    choose ok and then enablePostBack

    and run Your Pro and ISA  you will fin the desire result

    Hope beSt ThIng Be ArouNd You
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter