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

Table problems

Status
Not open for further replies.

TimJr

Programmer
Feb 22, 2002
21
US
I'm having trouble opening tables that I create from a copy of a blank table.
The blank table is a table that contains no data.
I copy the blank table to a new table (ie. 06242003.dbf).
This works fine.
I then try to open the table and get the following error:
"ODBC driver does not support requested property"

The code is as follows:

Dim objRec2
Set objRec2=Server.CreateObject("ADODB.Recordset")
objRec2.Open strDataFile, strConnect, adOpenStatic, adLockOptimistic, adCmdtable


strDatafile is the path and name of the table without the extension(ie. C:\....\06242003)
I get my error on the objRec2.Open line.

I know the ODBC drivers are setup properly.

I'm new to ASP so maybe I'm doing something stupid.
Any help???????????


 
Never mind!

Rookie mistake.
I included the path name in the table name in the OPEN statement.
The path is determined by the connection string.

Sorry for wasting your time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top