Author | Message | Time |
---|---|---|
CrAz3D | I keep receiving the error "ActiveX can't create object I know that the path is correct & that Ham.mdb does, in fact, exsist. Any ideas? [code]Global TresDB as Object[/code][code] Set TresDB = OpenDatabase("C:\Documents and Settings\Owner\Desktop\Ham.mdb")[/code] | April 3, 2004, 10:19 PM |
Adron | Perhaps your database drivers aren't correctly registered? Which one is it you're trying to use? | April 4, 2004, 9:52 PM |
CrAz3D | Hmm. I'm just trying to open Ham.MDB, a regular Access database located on my desktop. Something that COULD be confliciting also, I "do not have a license" to use a data enviroment in ANY project on my computer. I've reinstalled VB twice now & I am thinking that solving this could solve the OpenDatabase error, or @ least bring me closer. | April 5, 2004, 3:38 AM |
Adron | [quote author=CrAz3D link=board=31;threadid=6145;start=0#msg53507 date=1081136302] Something that COULD be confliciting also, I "do not have a license" to use a data enviroment in ANY project on my computer. I've reinstalled VB twice now & I am thinking that solving this could solve the OpenDatabase error, or @ least bring me closer. [/quote] Do you have VB Pro? IIRC, in some VB versions, opening a database without any gui object attached to it was restricted to the Pro version. I'm still wondering where your OpenDatabase function is coming from, go check that? | April 5, 2004, 8:51 AM |
CrAz3D | This is just code I am editting from the previous person that worked on it. It is a fundraiser database for my school band, I'm not sure where they got the OpenDatabase Function. Licensing issue fixed. OpenDatabase is prob now. | April 6, 2004, 12:24 AM |
Grok | [quote author=CrAz3D link=board=31;threadid=6145;start=0#msg53621 date=1081211091] Licensing issue fixed. OpenDatabase is prob now. [/quote] What does this mean? You didn't answer Adron's valid questions. What edition of VB is this? Pro? Enterprise? Warez or legit? What are the listed references in the menu Project|References? It's quite possible your scope includes multiple OpenDatabase functions, or at least the wrong one than you are expecting. Which technology are you expecting OpenDatabase to come from? DAO? 3.5? 4.0? 4.5? Depending on your answer, is the proper typelib selected in references? If you want help you have to give the helpers more than enough information. Try to guess what we would need to solve the problem, then give that and more! | April 6, 2004, 1:19 AM |
Grok | [code] Dim sDB As String Dim wrkJet As Workspace Dim TresDB As Object ' Create Microsoft Jet Workspace object. Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet) sDB = "D:\VS6\VB98\NWIND.MDB" Set TresDB = wrkJet.OpenDatabase(sDB, True) [/code] works fine here with Microsoft DAO 3.6 referenced. | April 6, 2004, 1:34 AM |
CrAz3D | [quote author=Grok link=board=31;threadid=6145;start=0#msg53631 date=1081214393] [quote author=CrAz3D link=board=31;threadid=6145;start=0#msg53621 date=1081211091] Licensing issue fixed. OpenDatabase is prob now. [/quote] What does this mean? You didn't answer Adron's valid questions. What edition of VB is this? Pro? Enterprise? Warez or legit? What are the listed references in the menu Project|References? It's quite possible your scope includes multiple OpenDatabase functions, or at least the wrong one than you are expecting. Which technology are you expecting OpenDatabase to come from? DAO? 3.5? 4.0? 4.5? Depending on your answer, is the proper typelib selected in references? If you want help you have to give the helpers more than enough information. Try to guess what we would need to solve the problem, then give that and more! [/quote] My ignorance. Visual Basic 6.0 Professional Ed, from Hastings w/a student discount. I'll try using the wrkJet method you listed above, thank you | April 6, 2004, 11:19 PM |
CrAz3D | Grok, in your code, what is the Workspace? Is it the data enviroment? | April 11, 2004, 6:21 AM |
Adron | A Workspace is one of the DAO classes. IIRC it represents a session to DAO, in which you can have open databases/connections. Transactions are local to a workspace. I also think you can have different usernames active in different workspaces. | April 11, 2004, 10:50 AM |