?
Solved

DBGrid32.ocx always retuns empty...

Posted on 2002-06-23
4
Medium Priority
?
320 Views
Last Modified: 2008-02-01
I've written a program to look through the content of *.MDB tables without Access, based on DBGrid32.ocx. Unfortunately, after successful installation, on some win'98 machines dbgrid form always retuns empty content without any error... I wish I know how to fix this strange behaviour of standard MS component. MDAC & JET are installed everywhere...
TIA
0
Comment
Question by:igorg
[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
4 Comments
 
LVL 1

Expert Comment

by:gron
ID: 7101690
Show us some code.
A DBgrid is always bound to your data through an underlying recordset that you must create with an SQL statement or a Data Control, but you mention neither of these.
0
 

Author Comment

by:igorg
ID: 7103140
First, my settings for Data1 component in design view:
--------------
Connect=Access 2000;
DefaultCursorType=0-DefaultCursor
DefaultType=2-UseJet
--------------
My VB code follows:
-----
Set dbz = Workspaces(0).OpenDatabase(App.Path & "\" & DBName, False, False, PWDStr)
Set Me.Data1.Recordset = dbz.OpenRecordset(TableName, dbOpenSnapshot)
Me.Data1.Refresh
Me.DBGrid1.Refresh
-------

I guess the reason of notworking my code on some machines is in absense (or different version) of some DLL, which is not included by Package and Deployment Wizard.
Yesterday I tested my code on clean Win98SE machine. Installing DCOM98,MDAC 2.52,Jet4, VB6Runtime SP3 - changed nothing. Reinstalling my prog setup - again cased no positive results.
Only after a few seconds of VB6 setup (which was still in progress), the DBgrid started to work normally.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7923812
Hi igorg,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Refund points and save as a 0-pt PAQ.

igorg, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7968473
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

800 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