Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why EXE doesn't work?

Status
Not open for further replies.

caro8pare

Programmer
Jul 28, 2004
56
HK
The .exe is working well on the computer I created it, but when I try to use my .exe on another computer, it doesn't work. Even if I have all the good stuff like DLL register at the right place (vb6fr.dll, msadodc.ocx & msdatgrd.ocx), the good path for the BD, The column exist in my bd with the right name, ...

I have always this error:
Execution Error '6147'.
Column not found, name_of_column

I don't understand. Any help will be appreciate.


 
The problem might be ocurring when you call the datagrid.
 
Here is what is done when the form is unload:
Private Sub Form_Load()
If TableExists("C:\Unix\DataBase\AIX.mdb", "RECHERCHE") Then
SQL ("DROP TABLE RECHERCHE")
End If
DisableCloseButton Form1
DataGridProperty
End Sub


Here is the Code of DataGridProperty:
Public Sub DataGridProperty()
Form1.DataGrid1.Columns("No").Visible = False
Form1.DataGrid1.Columns("Commandes").Width = 2500
Form1.DataGrid1.Columns("Types").Width = 3000
Form1.DataGrid1.Columns("Séquence").Width = 1150
Form1.DataGrid1.Columns("Description").Width = 10000

Form1.DataGrid1.Columns("Commandes").AllowSizing = False
Form1.DataGrid1.Columns("Types").AllowSizing = False
Form1.DataGrid1.Columns("Séquence").AllowSizing = False
Form1.DataGrid1.Columns("Description").AllowSizing = False

Form1.DataGrid1.HeadFont.Size = 10
Form1.DataGrid1.HeadFont.Bold = True
End Sub

Thank you very much for your help, I search, I search and I don't find anything.
 
You're right , alehawk.
Because if put in comment DataGridProperty, my .exe work but with a datagrid empty and any operation with the datgrid fail.

What can I do to for this DataGrid?
I'm really desesperate...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top