Results 1 to 4 of 4

Thread: How do u customize a Database? (PLZ HELP!)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Posts
    77

    Post

    I got someone to tell me how to create a database. Now I need info, on how to really make one. I have no idea how to create tables, records, and everything else. I'm a newbie in Databases. (At least I
    m good in everything else =])
    Plz post infomation, even if someone posted already. Anything is good =].

    Thx!

    Justin =]

  2. #2
    Addicted Member
    Join Date
    Apr 1999
    Location
    Freeport
    Posts
    204

    Post

    I hope this Helps
    Dim db As Database
    'dtaDataN.Recordset.AddNew
    dlgCMD1.DialogTitle = "Microsoft Access"
    dlgCMD1.FilterIndex = 1
    dlgCMD1.Filter = "Microsoft Access MDBs (*.mdb)|*.mdb"
    dlgCMD1.filename = vbNullString
    dlgCMD1.CancelError = False
    'Form1.dlgCMD1.Flags = FileOpenConstants.cdlOFNOverwritePrompt + FileOpenConstants.cdlOFNHideReadOnly
    dlgCMD1.ShowSave
    If Len(dlgCMD1.filename) > 0 Then
    snewname = dlgCMD1.filename
    lblDataN = dlgCMD1.filename

    End If

    If Len(snewname) = 0 Then Exit Sub


    Set db = CreateDatabase(snewname, dbLangGeneral , dbVersion30)
    db.Execute "Create Table NAmeOfTable " & " (ID TEXT,FirstName text, MiddleName text, Lastname text, SocialSecNo number);"
    db.Close

  3. #3
    Addicted Member
    Join Date
    Apr 1999
    Location
    Freeport
    Posts
    204

    Post

    New Version had a couple of line in there that mat have confuse you. As for as index and the rest I still try to figure that out.
    Dim db As Database
    dlgCMD1.DialogTitle = "Microsoft Access"
    dlgCMD1.FilterIndex = 1
    dlgCMD1.Filter = "Microsoft Access MDBs_ (*.mdb)|*.mdb"
    dlgCMD1.filename = vbNullString
    dlgCMD1.CancelError = False
    dlgCMD1.ShowSave
    If Len(dlgCMD1.filename) > 0 Then
    snewname = dlgCMD1.filename
    End If
    If Len(snewname) = 0 Then Exit Sub


    Set db = CreateDatabase(snewname, dbLangGeneral , dbVersion30)
    db.Execute "Create Table NAmeOfTable " & " (ID TEXT,FirstName text, MiddleName text, Lastname text, SocialSecNo number);"
    db.Close

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Posts
    77

    Post

    Thx for the help! =]

    Took me a while to figure out when I can declare comething a database. U need the Data object. =]

    Thx for ur help.

    Justin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width