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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run-time error 3125 when "appending a table" (Access)

Status
Not open for further replies.

Techno1X

Programmer
Mar 21, 2008
12
CA
I get this error "Run time error 3125" when trying to append a table: it says I used an invalid name.

However, I followed the rules properly, so see this snippet:

CODE:
"Dim dbOne as Database
Dim tblOne As New DAO.TableDef
strName = "temp_Name"
Set tblOne = dbOne.CreateTableDef(strName)
(5) dbOne.TableDefs.Append tblOne"

I get an error at line 5; any help? Thanks
 
You have not set the database to anything and you do not have any fields.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top