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. Problem with Schemas

Problem with Schemas

Scheduled Pinned Locked Moved Visual Basic
2 Posts 2 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.
  • M Offline
    M Offline
    Mark06
    wrote on last edited by
    #1

    Hi, I have a schema which reflects a table in the database. I've just added a field to the schema table, called Watermark. I've built the library. But when I access it in my main project, the intellisense works: reportSchema.Dataset.tblReport(recordnum).Watermark But at runtime, I get an error: Watermark is not a member of tblReportRow I've tried removing and readding it a few times. Its like the autogen code in vs2005 hasnt updated everything. Anyone seen this before?

    D 1 Reply Last reply
    0
    • M Mark06

      Hi, I have a schema which reflects a table in the database. I've just added a field to the schema table, called Watermark. I've built the library. But when I access it in my main project, the intellisense works: reportSchema.Dataset.tblReport(recordnum).Watermark But at runtime, I get an error: Watermark is not a member of tblReportRow I've tried removing and readding it a few times. Its like the autogen code in vs2005 hasnt updated everything. Anyone seen this before?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Mark06 wrote:

      I've just added a field to the schema table, called Watermark.

      Did you just add this field to the database only?? The designer will not know this happened and hence, won't regenerate the code you're talking about. You either have to scrap your existing dataset and drag the table to the desginer again, or you have to modify the designer generated code by hand to add this field and all the support for it.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      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