There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop mac malware motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows vista windows xp winxp wireless wmp
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
VB6-Datagrid/Adodc Data Binding Error


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
MustBNuts's Avatar
Distinguished Member with 2,017 posts.
 
Join Date: Aug 2003
Location: Nevada
25-Feb-2004, 01:52 AM #1
Unhappy VB6-Datagrid/Adodc Data Binding Error
Okay, need a VB expert here:

I have a small form with 1 datagrid and 1 adodc on it. Adodc is connected via Jet 4 to an Access dbase (Soccer.mdb) with recordsource as a SQL stmt (SELECT * from Teams). The datagrid datasource is the adodc.

Everything works fine in development environment; but when I create an executable and move it to a "clean" machine, it fails with the error "Cannot initialize data bindings".

I have registered the following on the clean machine:

msadodc.ocx
msdatagrd.ocx
msbind.dll
mscomct2.dll

This got rid of a couple of errors but not this last one. I've tried a small test .exe with no filters or sql parameters, and I still get the error.

I suspect I am missing an ocx/dll on the clean machine...anyone want to take a stab at this?

MBN
MustBNuts's Avatar
Distinguished Member with 2,017 posts.
 
Join Date: Aug 2003
Location: Nevada
25-Feb-2004, 03:35 AM #2
Been working on this problem for a few hours...since posting...hours more before that...

Found out what the issue was:

needed msstdfmt.dll

Now all is right with the world... I can go to bed now....!

MBN
AbvAvgUser's Avatar
Distinguished Member with 2,313 posts.
 
Join Date: Oct 2002
Location: Mumbai, India
Experience: Intermediate
26-Feb-2004, 01:49 AM #3
Yes you can go to bed peacefully now. But now you have some more knowledge and capacity to help someone with a similar problem in the future .

All the best.
MustBNuts's Avatar
Distinguished Member with 2,017 posts.
 
Join Date: Aug 2003
Location: Nevada
26-Feb-2004, 02:14 AM #4
Well, the rest of the app uses adodb all coded in the class (my intention is to eventually split the front end away from the connectivity and use a .dll)....this is the only part that uses the adodc, not happy with it and will now try to code it through the class.

I am a bit stumped because the datagrid populates off the recordset, so I have to figure out how to connect via the class, collect the recordset,and return it to the subroutine...hmmm, gave me some ideas already..... up to now I've been returning collections, maybe we try to return the recordset...hmmmmm....



MBN
__________________
I'll burn that bridge when I get to it!
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:45 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.