User Profile

Collapse

Profile Sidebar

Collapse
Chloe828
Chloe828
Last Activity: Nov 20 '11, 01:46 PM
Joined: Nov 18 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Chloe828
    replied to Incrementing a field
    I'm using MsAccess 2007 for the database..
    And I've tried the above and still it doesn't store.
    As in it has no error or syntax, it just can't store :(

    Is there any other way like using loops?
    See more | Go to post

    Leave a comment:


  • Chloe828
    replied to Incrementing a field
    It didn't increment my Code column nor store the new description
    :(
    How so?


    Code:
    Public Function AddClassification(ByVal Description As String)
            Dim strSql As String
            Dim dstemp As New DataSet
            Dim intaffected As Integer
    
            Try
                build()
                'Using a SQL statement INSERT INTO to include data to access table
                strSql =
    ...
    See more | Go to post

    Leave a comment:


  • Chloe828
    replied to Incrementing a field
    I've changed the ID to description because since you've said its
    unique indexes.. so here what I actually suppose to do,


    Access data:

    Column 1: CODE (primary key)
    Column 2: DESCRIPTION


    CODE DESCRIPTION

    1 MAMMAL
    2 REPTILE
    3 AMPHIBIAN

    Its like this, as I enter a new DESCRIPTION,
    and when I click the...
    See more | Go to post

    Leave a comment:


  • Chloe828
    replied to Incrementing a field
    Hi, thank you for your kind help.
    I have tried the code you gave me but it doesn't seem to work.
    Ican't store the ID nor increment the Code.
    Here are my codes below,


    Column "Code" is the one that suppose to increment as I store new "ID".



    Code:
             Private Sub addbtn3_Click(ByVal sender As System.Object, ByVal e As      System.EventArgs) Handles addbtn3.Click
    ...
    See more | Go to post

    Leave a comment:


  • Chloe828
    started a topic Incrementing a field

    Incrementing a field

    How can I increment a field without using Autonumber,
    like reading from its last value and then increment it?
    I'm new to vb.NET and really need a detailed explanation.
    See more | Go to post
No activity results to display
Show More
Working...