G genevx Registered User. Local time Today, 11:08 Joined Jul 3, 2002 Messages 36 Jul 16, 2002 #1 Just wondering, but how would you go about declaring a variable as a database in Access 97. It works in 2000, but after I converted it to 97, it tells me that it doesn't understand the object. Please help and thanks! =P genevx
Just wondering, but how would you go about declaring a variable as a database in Access 97. It works in 2000, but after I converted it to 97, it tells me that it doesn't understand the object. Please help and thanks! =P genevx
P Peter D Registered User. Local time Today, 19:08 Joined Sep 7, 2000 Messages 188 Jul 16, 2002 #2 dim dbs as database This requires either a reference to DAO or ADO. Check Tools > References from any module in design mode to see your references. To specifically declare a varaible as either an DAO database, or an ADO database, do this: dim dbs as DAO.database dim dbs as ADODB.database Hope this helps,
dim dbs as database This requires either a reference to DAO or ADO. Check Tools > References from any module in design mode to see your references. To specifically declare a varaible as either an DAO database, or an ADO database, do this: dim dbs as DAO.database dim dbs as ADODB.database Hope this helps,
C cogent1 Registered User. Local time Today, 19:08 Joined May 20, 2002 Messages 315 Jul 16, 2002 #3 in access97, you don't need the DAO prefix. Just use Dim dbs as database. But ensure yiou have DAO 3.51 loaded under tools>References
in access97, you don't need the DAO prefix. Just use Dim dbs as database. But ensure yiou have DAO 3.51 loaded under tools>References