|
-
Jan 11th, 2006, 06:52 PM
#1
Thread Starter
Junior Member
program can't access database when running on other computers
hi all,
im having trouble working out on this problem. my program has a data environment to access its database (ms access). it runs fine on my computer, and ive decided to compile it. however when i try to run it on other computer (without ms access), it can't access the database and displays an error message everytime i try to access.
Code:
Run-time error '713':
Application-defined or object-defined error
any help would be greatly appreciated.
thanks!,
marlon
-
Jan 12th, 2006, 09:02 AM
#2
Re: program can't access database when running on other computers
Welcome to the forums. 
What deployment package are you using?
-
Jan 12th, 2006, 06:23 PM
#3
Thread Starter
Junior Member
Re: program can't access database when running on other computers
hi, thanks! wow youve got a lot of posts!ü
the package and deployment wizard. ive tried inno before but i dont know how to use it.
-
Jan 13th, 2006, 08:42 AM
#4
Re: program can't access database when running on other computers
 Originally Posted by aerialpunk
hi, thanks! wow youve got a lot of posts!ü
the package and deployment wizard. ive tried inno before but i dont know how to use it.
Did you bundle your database into the setup package?
What about MDAC?
-
Jan 13th, 2006, 08:16 PM
#5
Thread Starter
Junior Member
Re: program can't access database when running on other computers
 Originally Posted by Hack
Did you bundle your database into the setup package?
What about MDAC?
yes i did that sir. and it runs well in my computer. however, when i install it on another computer, it displays an error message when i try to connect to the database. it shows my forms but everytime i try to connect to the database it shows up an error message. is it because the computer doesn't have an ms access program installed on it?
-
Jan 13th, 2006, 08:42 PM
#6
Re: program can't access database when running on other computers
No. Access isn't necessary for the client. Post some of the code that fails.
-
Jan 14th, 2006, 01:55 AM
#7
Thread Starter
Junior Member
Re: program can't access database when running on other computers
 Originally Posted by dglienna
No. Access isn't necessary for the client. Post some of the code that fails.
here it is sir. everytime i pick a record to display it sends an error message.
VB Code:
Private Sub cboSelectType_Change()
'Enable data grid
DataGrid1.Enabled = True
'Display table on data grid
DataGrid1.DataMember = cboSelectType.Text
End Sub
- my DataGrid1's DataSource is DataEnvironment1.
- my DataEnvironment's Data Link Properties links to Database1.mdb
other than that, i did not use any method or step to connect to the database. please advice me on what to do sir. thanks.
appreciate your help,
marlon
-
Jan 14th, 2006, 02:28 AM
#8
Re: program can't access database when running on other computers
Your probably missing MDAC on the other systems. You can download the "Component Checker" utility from microsoft to verify that the other systems have it and what version.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 14th, 2006, 03:47 AM
#9
Thread Starter
Junior Member
Re: program can't access database when running on other computers
 Originally Posted by RobDog888
Your probably missing MDAC on the other systems. You can download the "Component Checker" utility from microsoft to verify that the other systems have it and what version.
im kinda lost sir what is MDAC? my program runs on my computer but when i try to run it on other computers it crashes everytime i try to connect with the database. ive read some cases like this on the web and what they say is that i have to include msjet40.dll on my project so that it can communicate with the database even without ms access.
-
Jan 14th, 2006, 03:52 AM
#10
Re: program can't access database when running on other computers
MDAC is Microsoft Data Access Components, like ADO 2.x
Oh, I see your using the DataEnvironment1.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 15th, 2006, 08:08 AM
#11
Re: program can't access database when running on other computers
 Originally Posted by RobDog888
MDAC is Microsoft Data Access Components, like ADO 2.x
Oh, I see your using the DataEnvironment1.
Even so, I still think MDAC needs to be installed.
I'm wondering if whatever the DataEnvironment needs to run may not be included in the installation. The error message indicates the inability to find a particular object, and the DataEnvironment would qualify as an object.
-
Jan 15th, 2006, 07:37 PM
#12
Thread Starter
Junior Member
Re: program can't access database when running on other computers
 Originally Posted by Hack
Even so, I still think MDAC needs to be installed.
I'm wondering if whatever the DataEnvironment needs to run may not be included in the installation. The error message indicates the inability to find a particular object, and the DataEnvironment would qualify as an object.
hey thanks guys for your replies
i see.. so what youre saying is that possibly, the problem lies in the data environment and not the access? i see.. so i have to find a way to reference the dataEnvironment in the project.. hmmm...
-
Jan 16th, 2006, 06:30 AM
#13
Re: program can't access database when running on other computers
 Originally Posted by aerialpunk
hey thanks guys for your replies
i see.. so what youre saying is that possibly, the problem lies in the data environment and not the access? i see.. so i have to find a way to reference the dataEnvironment in the project.. hmmm...
Have you tried tossing the dataenviroment control and using programming code to do your database work?
-
Jan 16th, 2006, 09:39 PM
#14
Thread Starter
Junior Member
Re: program can't access database when running on other computers
 Originally Posted by Hack
Have you tried tossing the dataenviroment control and using programming code to do your database work?
no not at all. im not good when it comes to database programming so ive just used a data environment to help me. umm, i found out something. when you right click on the data environment, there's an option "publish components". does this have something to do with my problem? but when i try to publish it it will just save it to the local database and from there i dunno what to do next.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|