Results 1 to 6 of 6

Thread: the adodc1 delete my information form the database ??

  1. #1

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    Lightbulb the adodc1 delete my information form the database ??

    peace be with you

    i make small project using ( adodc1 - combo1 - 2 text )

    i make a connect between ( adodc1 & combo1 ) after "run" all the data in the database delete and be empty !!
    i use this code for showing :
    Code:
    Private Sub Form_Load()
    Do
    Combo1.AddItem Adodc1.Recordset("name")
    Adodc1.Recordset.MoveNext
    Loop Until Adodc1.Recordset.EOF = True
    End Sub
    how i can make the ( adodc1 & combo1 ) show the data and not delete

    thanks

  2. #2

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    Re: the adodc1 delete my information form the database ??

    peace be with you

    i test it by " combobox1 " and it's work so good !!

    what's the different between the two ( combo1 - combobox 1 )

    thanks

  3. #3

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    Re: the adodc1 delete my information form the database ??

    peace be with you

    after choose form combobox1 when i click over text the combbox cleared !!

    thanks
    Attached Files Attached Files

  4. #4
    New Member
    Join Date
    Dec 2004
    Location
    Jakarta, Indonesia
    Posts
    2

    Smile Re: the adodc1 delete my information form the database ??

    you just need one more command (adodc1.refresh)

    like this:
    Code:
    Private Sub Form_Load()
    Do
    Combo1.AddItem Adodc1.Recordset("name")
    Adodc1.Recordset.MoveNext
    Loop Until Adodc1.Recordset.EOF = True
    adodc1.refresh
    End Sub

  5. #5

    Thread Starter
    Hyperactive Member xray's Avatar
    Join Date
    Jun 2003
    Location
    EgYpT
    Posts
    312

    Re: the adodc1 delete my information form the database ??

    peace be with you

    thanks [email protected]

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: the adodc1 delete my information form the database ??

    you have your email address visible again. the bots will be able to get it.
    Just change your signature. We can link to your profile, so you should just leave it there.

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