i think your open statement needs to be modified to tell the rs what data to return. where you have c:\filename.dbf you need to put a sql command or table name. the next statement where you have cn tells the rs what database you need to get the rs from. YOu don't need to tell it again.
Main Topics
Browse All Topics





by: afpcosPosted on 2000-06-14 at 04:43:14ID: 2946265
rs.Open "c:\Filename.dbf", cn, adOpenDynamic, adLockPessimistic, adCmdTable
"c:\Filename.dbf" is not a name of a table, it is the path to the database
The statement should read
rs.Open "SELECT * FROM table",cn,adOpenDynamic, adLockPessimistic, adCmdTable