I'm trying to write code for my database to control the database and recordsets in Access, but when I try to use the line:
Dim dbs as Database
Access doesn't recognise the word "Database". The list that appears as you enter a datatype doesn't mention Database, DAO, tabledef or anything like that (although it does contain Recordset). If I write in "database", Access does not recognise it - when I run the code, it gives me an error message saying "Compile Error: User Defined Type not defined".
HOWEVER. If I run one of my older databases that I wrote before we got upgraded to XP which made extensive use of DAOs, it works fine!
So something is missing somewhere. Could it be some sort of access permissions or something like that? The IT dept says that the whole package was installed.
BTW, I'm currently using Access XP, but my old databases were written in Access 97.
Dim dbs as Database
Access doesn't recognise the word "Database". The list that appears as you enter a datatype doesn't mention Database, DAO, tabledef or anything like that (although it does contain Recordset). If I write in "database", Access does not recognise it - when I run the code, it gives me an error message saying "Compile Error: User Defined Type not defined".
HOWEVER. If I run one of my older databases that I wrote before we got upgraded to XP which made extensive use of DAOs, it works fine!
So something is missing somewhere. Could it be some sort of access permissions or something like that? The IT dept says that the whole package was installed.
BTW, I'm currently using Access XP, but my old databases were written in Access 97.