"Data Grid Control: Cannot Initialize data bindings"

rptl
07-05-2005, 07:10 AM
Hi ppl!

"Data Grid Control: Cannot Initialize data bindings"

I copy msdatgrd.ocx to app path in windows 98 machine and give me this error.

In win2k run smoothly. I need to install something in win98 to get this works?

Cheers.

Shurik12
07-05-2005, 07:12 AM
Hi,

>I need to install something in win98 to get this works?

You'd better not use the ADODC at all
sd

rptl
07-05-2005, 07:26 AM
hi shurik! here we go again lol!

i dont understand yet. im already using adodb, with myodbc installed in win98 machine.

Set conn = New ADODB.Connection
conn.ConnectionString = "Provider=MSDASQL; DRIVER={MySQL ODBC 3.51 Driver}; SERVER=200.136.253.237; DATABASE=chvs; UID = chvs; PASSWORD=usadsdsad; OPTION=3"
conn.Open

and below to bind datagrid to recordset

Set rs = New ADODB.Recordset
sql = "select transa_chave,transa_ra, date_format(transa_dataEmp,'%d-%m-%Y %H:%i:%s'),date_format(transa_dataDev,'%d-%m-%Y %H:%i:%s'),transa_obs from transa where transa_dataDev = ''"
rs.CursorLocation = adUseClient
rs.Open sql & " order by transa_dataEmp desc", main.conn, adOpenDynamic, adLockOptimistic, adCmdText
set Datagrid1.DataSource = rs

Shurik12
07-05-2005, 08:19 AM
Somehow I was thinking you were talking about ADODC control (don't ask me why),sorry.


What mdac version is installed on your '98 machine?
(please make sure you have this
http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&displaylang=en
on both machines)

rptl
07-05-2005, 08:37 AM
yes! i have installed mdac 2.80 yesterday.

any other trick ?

ps: when you say both machines, you can say win2k too or only win98īs machines?

Somehow I was thinking you were talking about ADODC control (don't ask me why),sorry.


What mdac version is installed on your '98 machine?
(please make sure you have this
http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-185d0506396c&displaylang=en
on both machines)

Shurik12
07-05-2005, 09:36 AM
Pleas try

1) unregister

msbind.dll
msstdfmt.dll
files on the problematic machine

2) copy the mentioned files from the machine the program works on and register them again

Notes: 1) do it one by one (meaning:unregister the first file/copy /register/see whether it works, if it doesn't proceed with the second one
2) Don't overwrite the files with the new ones but keep the "old" files somewhere in order to put them back if it doesn't work for you

>ps: when you say both machines, you can say win2k too or only win98īs machines?

Actually I thought you had one 98 and one 2000 machine. It's advisable to have the same mdac (and latest mdac version) on all machines involved

rptl
07-05-2005, 10:00 AM
great shurik! works great! im doing exactly you said and dont work, with msdatgrd.ocx and msbind.dll.

BUT you mentioned msstdfmt and... works :D
tks!!

ps: in windows 98 msdatgrd.ocx, msbind.dll and msstdfmt has not exist (@!$%$%@!!).
well, i just copy files in \win\system and register them and all works fine!

tks again shurik!

Shurik12
07-05-2005, 10:02 AM
cheers

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum