K
Kurt Radecki
Hello-
I'm having the hardest time doing what I think should be *so* easy.
My goal: Open a recordset (or something else) that allows me to open the
data in a table, add to it, values, etc.
I see examples posted on this site that show the following code:
dim dbs as database
I am using MS Access 2002. It does not recognize database as a datatype.
So, instead of using this:
dim dbs as database
dbs = currentdb
I just used currentdb as such and tried this:
dim rsInfo as recordset
set rsInfo = currentdb.openrecordset("CSPI",dbOpenTable)
When this failed (error: "Run-time error '3001': Invalid Argument"), I
tried using the following:
set rsInfo = currentdb.openrecordset("Select CSPI.ID from
CSPI",dbOpenDynaset)
I get the same error, "Run-time error '3001': Invalid Argument".
What am I missing?
Thanks in advance. Any help is much appreciated.
-Kurt
I'm having the hardest time doing what I think should be *so* easy.
My goal: Open a recordset (or something else) that allows me to open the
data in a table, add to it, values, etc.
I see examples posted on this site that show the following code:
dim dbs as database
I am using MS Access 2002. It does not recognize database as a datatype.
So, instead of using this:
dim dbs as database
dbs = currentdb
I just used currentdb as such and tried this:
dim rsInfo as recordset
set rsInfo = currentdb.openrecordset("CSPI",dbOpenTable)
When this failed (error: "Run-time error '3001': Invalid Argument"), I
tried using the following:
set rsInfo = currentdb.openrecordset("Select CSPI.ID from
CSPI",dbOpenDynaset)
I get the same error, "Run-time error '3001': Invalid Argument".
What am I missing?
Thanks in advance. Any help is much appreciated.
-Kurt