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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Textbox control bound to binding source?

Textbox control bound to binding source?

Scheduled Pinned Locked Moved Visual Basic
questionwpfwcf
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.
  • R Offline
    R Offline
    Rashar
    wrote on last edited by
    #1

    I have a sub called Save that saves a record to a table. I have an ID column that is autonumbered in the table. I also have a textbox that is bound to the ID column. Every time I click the save button, it creates a new record which is fine, but the ID in my textbox always remains the same. How can I "autonumber" my textbox, so that the textbox looks at the most recent ID, or saved record? Thanks in advance, Rashar

    R 1 Reply Last reply
    0
    • R Rashar

      I have a sub called Save that saves a record to a table. I have an ID column that is autonumbered in the table. I also have a textbox that is bound to the ID column. Every time I click the save button, it creates a new record which is fine, but the ID in my textbox always remains the same. How can I "autonumber" my textbox, so that the textbox looks at the most recent ID, or saved record? Thanks in advance, Rashar

      R Offline
      R Offline
      Rashar
      wrote on last edited by
      #2

      I figured it out... I changed the order of my dataset to order by ID Desc. Now it looks at the current record.

      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