.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 26th, 2004, 07:45 AM
vanishboy vanishboy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 5 vanishboy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Error when reading data from a newly created table

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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > Error when reading data from a newly created table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway