Posted 4 May 2020, 5:56 pm ESTWe have an old VB6 Project using a TDataGrid8 and a TDataControl8 (they were bound at designtime) and a few textboxes (they were bound at runtime).
This is the extracted code:
.ChangeInProgress = True
.ConnectionString = g_sConnectString
.RecordSource = m_sSQLSource
.Mode = adModeReadWrite
.ChangeInProgress = False
If .Recordset.EOF Then
nCount = .Recordset.RecordCount()
'Error on foreign computers...
.DataField = Empty
Set .DataSource = Me.TData
.DataField = "Test"
This code works on the developer maschine without any problems, in the VB6 IDE and as compiled EXE.
On ervery other computer I get an error message at runtime: Run-time error '545': Unable to bind to field or DataMember: 'Test'
The TDataGrid is always populated and works as espected!!!