Solved

VB Program installed on XP Not Refreshing Data

Posted on 2002-03-13
10
139 Views
Last Modified: 2010-05-02
Hi,
We have a data program that works perfectly on Windows 2000, when we run the code on XP and change the database via a system dsn the database not change. The table info viewed in our product table remains the same is one example. Thank you,
Derrick
0
Comment
Question by:dingo11
  • 5
  • 4
10 Comments
 
LVL 3

Expert Comment

by:MikeRenz
ID: 6861915
Are you sure that the application is relying on that system dsn for the database connection?  Try removing the dsn completely, and see if the application shows data.
0
 

Author Comment

by:dingo11
ID: 6861988
Mike,
I am positive. Like I said it works perfectly on windows 2000.
d
0
 
LVL 3

Expert Comment

by:MikeRenz
ID: 6862009
did you try removing the dsn on the xp machine, and running the app?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:dingo11
ID: 6862075
Mike,
the dsn name is not changed, the database is changed

mike I am more concerned as to why it works perfectly on 2000 and not on XP
d
0
 
LVL 3

Expert Comment

by:MikeRenz
ID: 6862096
xp does a lot on its own.  If you moved or renamed something, its very possible that it will continue to look at the original.

Did you write the vb app?  how does it look for the database?
0
 

Author Comment

by:dingo11
ID: 6862170
i didn't write the app, i just started here and it is one of the outstanding issues.

that makes sense about the xp pointing toward the same loc, i am not certain is the dsn is deleted, or if the db is changed. my boss took her xp machine with her.

mike i find it hard to believe we are the only ones to have stumbled across this prob.
0
 
LVL 3

Expert Comment

by:MikeRenz
ID: 6862264
it really seems like its using a path to the old database, rather than the dsn.  Guess we'll have to wait to test it out.
0
 
LVL 4

Accepted Solution

by:
TomLaw1999 earned 76 total points
ID: 6862269
My database application had to be modified to work correctly under XP. Turns out that Microsoft made some changes to ADO.(MDAC2.7 is used in XP). Don't know if this is related to your problem.
0
 

Author Comment

by:dingo11
ID: 6862388
thanks i got to call it quits for the day - and my test computer has left the building

i will be back
0
 

Author Comment

by:dingo11
ID: 6896487
Thank you! That did the trick. Have a great day programming,
d
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question