oConn="Provider=vfpoledb;Data Source=C:\MyPath\MyDatabase.dbc;Mode=ReadWrite;"
...
and still returns error. The .dbc's event is to check if pvSomeVar="somevalue". Error displays "variable pvSomeVar not found". I have declared a public variable pvSomeVar before trying to establish a connection, but error still.