Solved

DBGrid32.ocx always retuns empty...

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

785 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