|
-
Jul 17th, 1999, 10:22 PM
#1
Thread Starter
New Member
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
-
Jul 25th, 1999, 10:37 PM
#2
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|