Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

missing database

Status
Not open for further replies.

raziel01

Programmer
May 19, 2004
8
IT
Hi!

I done small program with database. Everything worked fine. Now I tryed to open my application in VB6 on another computer and it doesn't recognise database. I tryed to add declaration Dim DBS as database and in dropdown menu it doesn't offer database. I re-installed VB but the problem is still here.

If anyone can help I would apreciate it.
 
Check the version of MDAC.

Might be that is creating the problems, not sure though.

-VJ
 
Welcome to Tek-Tips. I invite you to read the following FAQ: FAQ181-2886 to get the most out of Tek-Tips.

Did you install the VB6 program using some sort of Setup or did you simply copy the exe?

I would alsoe check and see which version of MDAC is running on the new machine.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Check out faq222-2244 to get the best from these forums - it gives a good guide to getting better answers.

You will need to use some sort of packaging tool to sort out all the dependent files (dlls and ocxs) that you need for your program to run on another machine.

VB6 contains a simple Packaging and Distribution Wizard. You will find it under Add-Ins, but you may need to run it via the Add-in manager.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Sorry Cajun - slow typing from me tonight!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
I had the post window open for a long time. It took me a while to find one the FAQ's. :-D

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
I installed VB 6 from CD. I have MDAC from Office 2003 pro
 
I tryed to write another program and it does not recognise database command at all. it said user define type not defined after i set DBS as database manually.
 
The question wasn't how you installed VB6, the question was how did you install the application.

I would also, since you now have VB6 on the machine get a clean compile of the application. That error is usually indicative of a missing reference, which is also a symptom of not installing the application, but copying the exe.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
The problem is not in application because i can't put database in new application whisn i created on that computer. It does not recognise database command.
 
What references have you added to your new project? It looks like you're intending to use DAO, in which case you'll need to add a reference to the appropriate DAO library

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
I didn-t add any references on either computer. Could it be something with Windows XP?
 
'Database' is not a native VB type. It comes from the DAO library (and possibly other external libraries), so if the library is not referenced VB can't handle it.

Did you read either of the faqs referenced by CajunCenturion or me in earlier posts? They provide guidance on forum use, including the sort of info that you may need to give us.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
I read your earlier posts. I will try to see if there is DAO library.

Yhank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top