Solved

DBGrid32.ocx always retuns empty...

Posted on 2002-06-23
4
274 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now