Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset type mismatch

Status
Not open for further replies.

Killa

Programmer
Oct 19, 2001
56
US
why do i get TYPE MISMATCH if i declare rscopytable ?


Dim dbnames As Database
Dim RScopytable As Recordset

Set dbparts = OpenDatabase("L:\Part & Drawing Registers\database\parts.mdb")

Set RScopytable = dbparts.OpenRecordset(dbparts.TableDefs.Item(1).Name)

i want to get the fields.name and fields.count properties which i can only do if i declare rscopytable.



what i'm trying to do is make a copy of the tables in a database is there another easier way than interating through the tables then the records ????
 
Try:

Dim dbnames As DAO.Database
Dim RScopytable As DAO.Recordset
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top