Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Data Environments

Data Environments

Scheduled Pinned Locked Moved Visual Basic
databaseworkspacecssquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Derek Lakin
    wrote on last edited by
    #1

    Under VB6 I have created an application and added a Data Environment to it for accessing an MSAccess database. Having created a Command in it to represent a view(query) in the database I have dragged and dropped it on to a blank form. When I run the app at this stage the form is correctly filled with the first record in the view. However, after making a call to the function of the same name as the view on the data environment on application startup to make sure the data is fully populated, I then added buttons to the form for navigation using MoveNext, etc (e.g. dataEnv.MyView - then dataEvnv.rsMyView.MoveNext). They don't work!!!!! The recordset is being navigated correctly (checked via inspection in the Locals window) and the cursor is being changed, but the controls on the form do not change. To add to the mystery, if I add a grid control to the form and bind it to the same view in the data environment, all of the records appear correctly in the grid. When the currently selected record is changed in the grid, the original controls update accordingly!!!!!!!!!!!!!!:wtf: Is there some subtle configuration that I have missed? Derek Lakin. I wish I was what I thought I was when I wished I was what I am. Salamander Software Ltd.

    D 1 Reply Last reply
    0
    • D Derek Lakin

      Under VB6 I have created an application and added a Data Environment to it for accessing an MSAccess database. Having created a Command in it to represent a view(query) in the database I have dragged and dropped it on to a blank form. When I run the app at this stage the form is correctly filled with the first record in the view. However, after making a call to the function of the same name as the view on the data environment on application startup to make sure the data is fully populated, I then added buttons to the form for navigation using MoveNext, etc (e.g. dataEnv.MyView - then dataEvnv.rsMyView.MoveNext). They don't work!!!!! The recordset is being navigated correctly (checked via inspection in the Locals window) and the cursor is being changed, but the controls on the form do not change. To add to the mystery, if I add a grid control to the form and bind it to the same view in the data environment, all of the records appear correctly in the grid. When the currently selected record is changed in the grid, the original controls update accordingly!!!!!!!!!!!!!!:wtf: Is there some subtle configuration that I have missed? Derek Lakin. I wish I was what I thought I was when I wished I was what I am. Salamander Software Ltd.

      D Offline
      D Offline
      Derek Lakin
      wrote on last edited by
      #2

      I don't know what I did wrong on the first place but it has automagically fixed itself now :confused: Derek Lakin. I wish I was what I thought I was when I wished I was what I am. Salamander Software Ltd.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups