CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Location
    Brazil
    Posts
    28

    Try to simulate this situation - Simple

    Hi,

    Try to simulate this situation and help me if you find out where is the problem:

    1- Create a Form with a DataControl (Adodc) and put 2 TextBox bounded to it.

    2- Also create the table where those 2 TextBox will be connected.

    Done. Now run it.
    Type something in the first TextBox. Now type TAB and change the focus to the second TextBox.

    When the focus changes to the second TextBox everything that you had typed in the first TextBox disappears.
    This happens only when the table is empty. After inserting at least one record, this doesn't happen anymore.

    How to avoid that the content of the first TextBox disappears when inserting the first record in the table?

    Thanks in advance...

    Michel Jr.


    Some good Activex controls at my HP:
    http://www.geocities.com/michel_junior_hp/index.html

  2. #2
    Join Date
    Mar 2000
    Posts
    145

    Re: Try to simulate this situation - Simple

    Set the Adodc.EOFAction property to "2 - adDoAddNew"


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

Featured