[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Problems with DBGRID and Excel 5.0;

Posted on 1998-07-29
4
Medium Priority
?
291 Views
Last Modified: 2011-09-20
My problem is the next, I load an excel file like a database with the data control. I link a dbgrid to the datacontrol. The dbgrid doesn´t load a field since the one hundred record. This field is text in its first records and then it change to a numeric field, but it dissapear. When a change to Excell I can see the field has its data, but when I load it with the data control and the dbgrid strange things starts to happen. Like this. Also the vertical scroll bar dissapears and I can't see any information on the table.
I made a findfirst transaction between code. When the record is found it can be seen on the dbggrid. On the other hand, the number of records or lines of the Excel file is 2000. What would be happening?
Thank you
Pepe
0
Comment
Question by:al361345
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 

Accepted Solution

by:
hansbos earned 800 total points
ID: 1467179
Pepe,

I recently had also some trouble with DBGrid and Excel 5.0.
Microsoft came with the suggestion to use the following connect-string: Excel 5.0;HDR=NO;Imex=1
This solved my problem and maybe usefull to you too.

Hans
0
 

Author Comment

by:al361345
ID: 1467180
Thanks Hans. I used the connect-string and it solved the most of the problem, but I still have a missing field after the line 99. In its first part this field is used as an string, later it is used as numeric. The first part appear, and the next part dissapear. Can you give me more commets?
Thank you Hans.
0
 

Author Comment

by:al361345
ID: 1467181
Another thing happen. The Excel file was modified and I didn't made some code to modify it. The field that doesn't appear is the same that was changed in the original file. It dissapear to. It would be problem of the dbgrid of visual or the Excel program?
Pepe
0
 

Author Comment

by:al361345
ID: 1467182
Thank you Hans. I have found the mistake. The format of the columns in the Excel file changed between the column. I established the same format for the colum and it works. The contain of it appared. Thank you again.

Pepe
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question