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. Database & SysAdmin
  3. Database
  4. Create an AutoIncrement Column in a dbase/clipper file for Account Mate DOS

Create an AutoIncrement Column in a dbase/clipper file for Account Mate DOS

Scheduled Pinned Locked Moved Database
databasesql-serversysadminwindows-admin
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.
  • J Offline
    J Offline
    jkirkerx
    wrote on last edited by
    #1

    I'm not sure if this is even possible. I'm trying to create a auto increment column for FID in this database file. I was going to use SQL Server Express, but decided to just stick with the same format of the original program Account Mate for DOS, running low on quoted time for the project. Any insight would be appreciated!

    Dim m_path As String = Nothing
    Dim dwXCode As Integer = registry_shared.read_HKCU_dataPath(m_path)
    Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & m_path & "; Extended Properties=dBASE IV"
    Dim queryString As String = _
    "CREATE TABLE ARCEMJN " & _
    "(" & _
    " FID AUTOINCREMENT " & _
    " , FINVNO VARCHAR(10) " & _
    " , FCUSTNO VARCHAR(10) " & _
    " , FTRANSDATE DATE " & _
    " , FCONTACT1 VARCHAR(80) " & _
    " , FEMAIL1 VARCHAR(254) " & _
    " , FSTATUS BIT " & _
    " , FERRCODE VARCHAR(10) " & _
    " , FERRMESS VARCHAR(80) " & _
    " , FPDFPATH VARCHAR(254) " & _
    ") "

    J 1 Reply Last reply
    0
    • J jkirkerx

      I'm not sure if this is even possible. I'm trying to create a auto increment column for FID in this database file. I was going to use SQL Server Express, but decided to just stick with the same format of the original program Account Mate for DOS, running low on quoted time for the project. Any insight would be appreciated!

      Dim m_path As String = Nothing
      Dim dwXCode As Integer = registry_shared.read_HKCU_dataPath(m_path)
      Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & m_path & "; Extended Properties=dBASE IV"
      Dim queryString As String = _
      "CREATE TABLE ARCEMJN " & _
      "(" & _
      " FID AUTOINCREMENT " & _
      " , FINVNO VARCHAR(10) " & _
      " , FCUSTNO VARCHAR(10) " & _
      " , FTRANSDATE DATE " & _
      " , FCONTACT1 VARCHAR(80) " & _
      " , FEMAIL1 VARCHAR(254) " & _
      " , FSTATUS BIT " & _
      " , FERRCODE VARCHAR(10) " & _
      " , FERRMESS VARCHAR(80) " & _
      " , FPDFPATH VARCHAR(254) " & _
      ") "

      J Offline
      J Offline
      Jorgen Andersson
      wrote on last edited by
      #2

      Some info[^] on how to use AutoInc fields in dBase. Sorry, forget that, wrong version.

      Wrong is evil and must be defeated. - Jeff Ello[^]

      L 1 Reply Last reply
      0
      • J Jorgen Andersson

        Some info[^] on how to use AutoInc fields in dBase. Sorry, forget that, wrong version.

        Wrong is evil and must be defeated. - Jeff Ello[^]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Did those exist in DBase IV?

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

        J 1 Reply Last reply
        0
        • L Lost User

          Did those exist in DBase IV?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #4

          Oh bugger. I forgot to check the version.

          Wrong is evil and must be defeated. - Jeff Ello[^]

          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