Results 1 to 7 of 7

Thread: Please try this Quick Program..

  1. #1

    Thread Starter
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496

    Angry

    Please Try this quick program:

    Example to work out:
    2 text boxes:
    1 adodc control:
    1 data list:

    Use the NWIND.mdb from VisualStudio folder
    Set the first text box to the customer ID
    Set the second text box to customer name
    Set the list to the Customer ID

    As I scroll through using the adodc control, all fields are continous changed. Yet say i click on a customer ID from the list, is there a way to get the fields to change like they were using the adodc control??? ehhh been stuck on this one..I'm probably just over looking something.

    Thank you

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi Lethal,
    If you are using MS DBList then you can simply do

    Code:
    'set the RowSource of DBList1 to Data1
    'set the ListField to "CustomerID"
    
    Private Sub DBList1_Click()
        Data1.Recordset.Bookmark = DBList1.SelectedItem
    End Sub
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3

    Thread Starter
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496

    I'm getting closer..

    Thank you, i'm getting closer now.
    I just tried that, it's giving me an error saying object doesn't support this property or method.

  4. #4
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi,
    I have a feeling that you are using the wrong Control. Instead of using Microsoft Data Bound Grid you are using Microsoft Dta Grid. They look almost the same and share almost all the properties. I know this coz i made the same mistake !!
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  5. #5

    Thread Starter
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496

    .

    I'm using the right control, i'm just wondering are you saying to use two data controls, one adodc and one dao??

    thaknks

  6. #6
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi,
    Sorry i didnt read your question properly and didnt realise that you are actually using ADODC control, i assumed u r using Standard Data Control.

    Try the following code, this one is using ADDOC control and i am also using Microsoft DataList Control.

    Code:
    Private Sub DataList1_Click()
        Adodc1.Recordset.Bookmark = DataList1.SelectedItem
    End Sub
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  7. #7

    Thread Starter
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496

    ..

    Ya, if it's working for you it must be right. Mine still isn't working, i must have my fields linked wrong or something?? I'll keep working on it, thanks again

Posting Permissions

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



Click Here to Expand Forum to Full Width