?
Solved

DBGrid32.ocx always retuns empty...

Posted on 2002-06-23
4
Medium Priority
?
327 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
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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

809 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