CREATE TABLE with no columns

P

peregenem

Anyone noticed this one?

CurrentProject.Connection.Execute _
"CREATE TABLE Oops;"

Set rs = _
CurrentProject.Connection.Execute _
("SELECT COUNT(*) FROM Oops;")
 
P

peregenem

Set rs = _
CurrentProject.Connection.Execute _
("SELECT COUNT(*) FROM Oops;")

A workaround for this (unusual) error:

Set rs = _
CurrentProject.Connection.OpenSchema(adSchemaStatistics)

rs.Filter = "TABLE_NAME = 'Oops'"

MsgBox rs.Fields("CARDINALITY").Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top