I've created a vb.net program that connects to an access database.
Firstly, you can choose the database you want to connect to from a combobox. There's also the ability to create a new access database (button New) which is a copy of a template access database. It copies the template, gives it a new name (which you choose) and places it in a new subfolder. So the new db is exactly the same as the template (except its location). In the db, there's a table 'Userlogin'. It contains users who are allowed to use the program.
So you've created the new DB. Now You choose it, and you will connect to it.
After the 'choose database' dialog box, you get a 'login' dialog box. Here you can enter your user name & password (which is in the Userlogin table in the DB you just copied). Now the problem is, the following error appears:
'The Microsoft Jet-database-engine can not locate the table or query Userlogin. Make sure this exists and that the name is spelled correctly.'
It exists, is spelled correctly, location, ... everything is correct, but still the error appears.
When you close te program and run it again, the error won't appear. So this only happens when you've just created the new db (made a copy of the template). After that, it works correctly.
So a solution could be that te user should close the program first before using the db. But I find that rather ridiculous. It should work right away.
Anyone who knows a solution for this? Thanks for any help.
Firstly, you can choose the database you want to connect to from a combobox. There's also the ability to create a new access database (button New) which is a copy of a template access database. It copies the template, gives it a new name (which you choose) and places it in a new subfolder. So the new db is exactly the same as the template (except its location). In the db, there's a table 'Userlogin'. It contains users who are allowed to use the program.
So you've created the new DB. Now You choose it, and you will connect to it.
After the 'choose database' dialog box, you get a 'login' dialog box. Here you can enter your user name & password (which is in the Userlogin table in the DB you just copied). Now the problem is, the following error appears:
'The Microsoft Jet-database-engine can not locate the table or query Userlogin. Make sure this exists and that the name is spelled correctly.'
It exists, is spelled correctly, location, ... everything is correct, but still the error appears.
When you close te program and run it again, the error won't appear. So this only happens when you've just created the new db (made a copy of the template). After that, it works correctly.
So a solution could be that te user should close the program first before using the db. But I find that rather ridiculous. It should work right away.
Anyone who knows a solution for this? Thanks for any help.