Results 1 to 2 of 2

Thread: MDB (access) probelm

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    3

    Post

    Created an mdb with:
    Set dbsCamp = CreateDatabase(DBdir & "\Camp.mdb", _
    dbLangGeneral)
    Set tdfCampMstr = dbsCamp.CreateTableDef("CampMstr")
    ' Create and append new Field objects for the new
    ' TableDef object.
    With tdfCampMstr
    .Fields.Append .CreateField("camp_id", dbInteger)
    .Fields.Append .CreateField("camp_nm", dbText)
    End With
    dbsCamp.TableDefs.Append tdfCampMstr

    ---> The create works and I am able to list
    the table "CampMstr"

    However when I try to open the table I get
    an ERR=13, type mismatch ??

    Here is my open:
    Set dbsCamp = OpenDatabase(DBdir & "\Camp.mdb")
    Set rstCampMstr = dbsCamp.OpenRecordset("CampMstr", dbOpenDynaset)

    -----> Any clues about what is going on?

    Ray

  2. #2
    Junior Member
    Join Date
    Jun 1999
    Location
    Papillion, NE, USA
    Posts
    21

    Post

    Change your dbOpenDynaset option to


    dbOpenTable


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