CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Location
    Hong Kong
    Posts
    18

    VB DdataEnvironment

    Hi, I have a dataenvironment like this :

    dataenvironment1
    mydatabase
    mycustomerTable

    ''''''''''''''''''''''''''''''''''''''''''
    Sub form_load()
    if dataenvironment1.rsmycustomerTable.eof then
    cmdtop.enabled = false
    cmdprevious.enabled = false
    cmdnext.enabled = false
    cmdbottom.enabled = false
    end if
    end sub




    In my form_load(), I want to check whether the table is empty or not. The navigation button will be disabled if the table is empty. But the form_load() do not understand dataenvironment1.
    How can I do that ?
    Than you !




  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: VB DdataEnvironment

    Add this code at the form load event:

    YourConnection.open




    Michael Vlastos
    Automation Engineer
    Company SouthGate Hellas SA
    Development Department
    Athens, Greece

  3. #3
    Join Date
    Jul 1999
    Posts
    145

    Re: VB DdataEnvironment

    Try placing your code in the form_activate event. On form_load the components on the form may still be getting loaded into memory...


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