Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General / July 2004



Tip: Looking for answers? Try searching our database.

MSHFlexgrid not displaying data from ADO data control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick - 28 Jul 2004 15:31 GMT
Hi,

I'm having a very hard time figuring this out, and I'm going to have an even
harder time explaining the problem.

I have a large program that displays customer details along with purchase
details etc... on my development machine my program runs perfectly well but
if I put it onto a clients machine none (and I mean none) of the
MSHflexgrids display any data.

The MSHflexgrids data sources are ADO data controls which are
programmatically assigned a connection string to an SQL 7 Server through
ODBC. When the customer is searched for, each of these ADO controls
recordsets is populated with an SQL string to display the customers
purchases etc... in the form of:

sqlstr = "SELECT * FROM Orders WHERE CustNum = 123456"
data1.recordsource = SQLStr
data1.refresh

The data is displayed exactly how i want it on my machine (Windows XP
professional with Visual Studio 6 and SQL server 7 running locally). I can
connect my laptop to the network and run the compiled program from this and
it too works perfectly, but neither of the two client machines (one Windows
XP professional and the other Windows 2000 Professional) I have tried
display any data in the MSHFlexGrids even though connection to the SQL
server is sound and the customers detail (which are not displayed in an
MSHFlexGrid) are returned.

The SQL Server uses windows network authentication to allow access and I
have tried logging in as the user and as myself etc... still won't display
any data.

I have tried replacing the MSHflexgrid with data grids but these too remain
empty. I've checked the recordsources of the data controls and there are the
SQL strings I expect to see.

I have fully updated Windows, installed the latest MDAC, Jet 4 SP8, VB6
Runtime and the client files from the SQL server 7 desktop version onto the
client machine but still I see no data.

I don't understand why it works on some computers and not others. I
convinced the problem lies with either the way the SQL Server is set up or
something on the client computers is missing.

If anyone has any suggestions on what to try PLEASE let me know because this
is utter madness.
Nick - 30 Jul 2004 12:32 GMT
Hi,

For any who are interested i've sorted the problem now thanks

> Hi,
>
[quoted text clipped - 43 lines]
> If anyone has any suggestions on what to try PLEASE let me know because this
> is utter madness.
Jan Hyde - 30 Jul 2004 13:13 GMT
"Nick" <nick.glenisterNO@SPAMkeypublishing.com>'s wild
thoughts were released on Fri, 30 Jul 2004 12:32:05 +0100
bearing the following fruit:

>Hi,
>
>For any who are interested i've sorted the problem now thanks

You might want to post your solution in case anyone has the
same problem.

J

>> Hi,
>>
[quoted text clipped - 51 lines]
>this
>> is utter madness.

Jan Hyde (VB MVP)

Signature

A friend of mine just had her 11th baby. Everyone says she's overbearing
(Megan Waves)

[Abolish the TV License - http://www.tvlicensing.biz/]

Nick - 30 Jul 2004 16:30 GMT
Sure, but its not really a solution more a work around; i've just decided to
get rid of the data controls never liked them anyway but it seemed the
easiest solution at the time.

> "Nick" <nick.glenisterNO@SPAMkeypublishing.com>'s wild
> thoughts were released on Fri, 30 Jul 2004 12:32:05 +0100
[quoted text clipped - 66 lines]
>
> Jan Hyde (VB MVP)
Jan Hyde - 30 Jul 2004 16:54 GMT
"Nick" <nick.glenisterNO@SPAMkeypublishing.com>'s wild
thoughts were released on Fri, 30 Jul 2004 16:30:08 +0100
bearing the following fruit:

>Sure, but its not really a solution more a work around; i've just decided to
>get rid of the data controls never liked them anyway but it seemed the
>easiest solution at the time.

:-)

J

>> "Nick" <nick.glenisterNO@SPAMkeypublishing.com>'s wild
>> thoughts were released on Fri, 30 Jul 2004 12:32:05 +0100
[quoted text clipped - 73 lines]
>>
>> Jan Hyde (VB MVP)

Jan Hyde (VB MVP)

Signature

The doctor fell in the well and broke his collarbone.
Which proves that doctors should tend the sick and leave the well alone.

[Abolish the TV License - http://www.tvlicensing.biz/]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.