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. Web Development
  3. ASP.NET
  4. MsAccess with .net

MsAccess with .net

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasehelptutorialquestion
4 Posts 3 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.
  • K Offline
    K Offline
    Kissy16
    wrote on last edited by
    #1

    Hai all, Here i have a problem with Msaccess database.Problem is simple. prob1: when i am deleting a record programmitacally with delete button,the record should be decreased by 1 automatically. But in my database if 5 records are there,if i delete 3rd record,now no of records it is showing is 4 with the previous record number.if i enter a new record it is giving 6 as the record_id,which is wrong. i searched for the properties in access for a perticular field,but nothing helps me.How to solve this problem?? prob2; Also how to remove the history of a textbox values?? Like if i insert more than two records,textbox is giving the previous data for that textbox for the next time.I dont want to show the already entered data. Which property i need to set?? Otherwise give me other solution. Thanks in advance.

    kissy

    V K 2 Replies Last reply
    0
    • K Kissy16

      Hai all, Here i have a problem with Msaccess database.Problem is simple. prob1: when i am deleting a record programmitacally with delete button,the record should be decreased by 1 automatically. But in my database if 5 records are there,if i delete 3rd record,now no of records it is showing is 4 with the previous record number.if i enter a new record it is giving 6 as the record_id,which is wrong. i searched for the properties in access for a perticular field,but nothing helps me.How to solve this problem?? prob2; Also how to remove the history of a textbox values?? Like if i insert more than two records,textbox is giving the previous data for that textbox for the next time.I dont want to show the already entered data. Which property i need to set?? Otherwise give me other solution. Thanks in advance.

      kissy

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      Kissy16 wrote:

      when i am deleting a record programmitacally with delete button,the record should be decreased by 1 automatically. But in my database if 5 records are there,if i delete 3rd record,now no of records it is showing is 4 with the previous record number.if i enter a new record it is giving 6 as the record_id,which is wrong. i searched for the properties in access for a perticular field,but nothing helps me.How to solve this problem??

      Prob 1: I think your record_id is AutoNumber, so it would return you 6 only.

      Kissy16 wrote:

      Also how to remove the history of a textbox values?? Like if i insert more than two records,textbox is giving the previous data for that textbox for the next time.I dont want to show the already entered data. Which property i need to set??

      Prob 2: Thats because of your IE settings. Go to Tools --> Internet Options. Select Content Tab Click the AutoComplete button. Uncheck the Form Check box and apply the settings.

      Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

      K 1 Reply Last reply
      0
      • K Kissy16

        Hai all, Here i have a problem with Msaccess database.Problem is simple. prob1: when i am deleting a record programmitacally with delete button,the record should be decreased by 1 automatically. But in my database if 5 records are there,if i delete 3rd record,now no of records it is showing is 4 with the previous record number.if i enter a new record it is giving 6 as the record_id,which is wrong. i searched for the properties in access for a perticular field,but nothing helps me.How to solve this problem?? prob2; Also how to remove the history of a textbox values?? Like if i insert more than two records,textbox is giving the previous data for that textbox for the next time.I dont want to show the already entered data. Which property i need to set?? Otherwise give me other solution. Thanks in advance.

        kissy

        K Offline
        K Offline
        kuyak2000
        wrote on last edited by
        #3

        Kissy16 wrote:

        Also how to remove the history of a textbox values?? Like if i insert more than two records,textbox is giving the previous data for that textbox for the next time.I dont want to show the already entered data. Which property i need to set??

        Just set the autocomplete property to off. You can directly code it on the HTML. For example: Or on the ASP.NET, you can set the TextBox property of AutoCompleteType to AutoCompleteType.None in your code. best regards, Eriawan :)

        1 Reply Last reply
        0
        • V Venkatesh Mookkan

          Kissy16 wrote:

          when i am deleting a record programmitacally with delete button,the record should be decreased by 1 automatically. But in my database if 5 records are there,if i delete 3rd record,now no of records it is showing is 4 with the previous record number.if i enter a new record it is giving 6 as the record_id,which is wrong. i searched for the properties in access for a perticular field,but nothing helps me.How to solve this problem??

          Prob 1: I think your record_id is AutoNumber, so it would return you 6 only.

          Kissy16 wrote:

          Also how to remove the history of a textbox values?? Like if i insert more than two records,textbox is giving the previous data for that textbox for the next time.I dont want to show the already entered data. Which property i need to set??

          Prob 2: Thats because of your IE settings. Go to Tools --> Internet Options. Select Content Tab Click the AutoComplete button. Uncheck the Form Check box and apply the settings.

          Regards, Venkatesh Mookkan. Software Engineer, India My: Website | Yahoo Group | Blog Spot

          K Offline
          K Offline
          Kissy16
          wrote on last edited by
          #4

          Hai venkatesh, Thanks for ur reply,No in my database it is only a number. Is there any javascript or for number type do i need to do some changes for properties. Plz help me out. Second problem solved.

          kissy

          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