L
Lars Munch
In an Access database I am trying to use a Visual Basic
module to fill in some calculated values into a table. I
understand quite well, that if I were using Visual Basic
under other circumstances, I would have to tell Visual
Basic which database to operate on, the complete path and
filename of the database, and I would have to open a
connection to the database. However, in this case the
Visual Basic code is a module within a certain Access
application; - shouldn't this be a much more simple
situation? In this case I had expected the connection to
that certain database to be open as default.
Now it seems to be a little more complicated than that.
If I don't open the connection first, I get runtime error
3709, when I try to open the recordset. I have looked
for solutions in the "help" function of Visual Basic, and
I have tried some of the solutions from the code examples
of this "help" function, but then I only get other error
codes. In "help" I have not found any solutions to this
simple problem. Can anyone help me?
Somewhere in "help" it is said that "Open connection" is
used to establish connection to an external database.
When is a database said to be external?
module to fill in some calculated values into a table. I
understand quite well, that if I were using Visual Basic
under other circumstances, I would have to tell Visual
Basic which database to operate on, the complete path and
filename of the database, and I would have to open a
connection to the database. However, in this case the
Visual Basic code is a module within a certain Access
application; - shouldn't this be a much more simple
situation? In this case I had expected the connection to
that certain database to be open as default.
Now it seems to be a little more complicated than that.
If I don't open the connection first, I get runtime error
3709, when I try to open the recordset. I have looked
for solutions in the "help" function of Visual Basic, and
I have tried some of the solutions from the code examples
of this "help" function, but then I only get other error
codes. In "help" I have not found any solutions to this
simple problem. Can anyone help me?
Somewhere in "help" it is said that "Open connection" is
used to establish connection to an external database.
When is a database said to be external?