Hey, I used to program vb in school and at work a couple of years ago and I always used the following code to create a recordset so I could fill in data in tables, validate, etc...
Dim dbs as Database
Dim rst as recordset
set dbs=currentdb
set rst=dbs.openrecordset("table_name")
rst.findfirst..... etc.. etc.. etc..
but now I'm getting an error because it does not recognize the Database as an object, I'm using ms office XP (2003 I think) which has vb 6.3
What's wrong with this, did vb change this in the last years?
What should I do to get the same recordset so I can work with the data?
thank you,
Richard
Dim dbs as Database
Dim rst as recordset
set dbs=currentdb
set rst=dbs.openrecordset("table_name")
rst.findfirst..... etc.. etc.. etc..
but now I'm getting an error because it does not recognize the Database as an object, I'm using ms office XP (2003 I think) which has vb 6.3
What's wrong with this, did vb change this in the last years?
What should I do to get the same recordset so I can work with the data?
thank you,
Richard