473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

View SQL Server 2000 db in VB6 listview

gud day...

please help me with my project...
how can i view the database from sql server 2000 in vb6 list view?
Jan 2 '08 #1
5 2503
daniel aristidou
491 256MB
gud day...

please help me with my project...
how can i view the database from sql server 2000 in vb6 list view?
You will have to use a loop and the list.additem methods

something like

Expand|Select|Wrap|Line Numbers
  1. Dataset.recorset.movefirst
  2. Do while not Dataset.recordset.eof
  3.  
  4. List.additem Dataset.recorset.<feild>
  5. Datset.recordset.movenext
  6. Loop
Thats wht you should base your code on
What project is this since there are rules as to what we can help you with.
Daniel(~_~)
Jan 3 '08 #2
debasisdas
8,127 Expert 4TB
1.Open the conection to sql server
2.Open the recordset as desired.
3.Follow as suggested in the previous post.
Jan 3 '08 #3
----->>>>>
yes i've done it but how can i modify/edit the listview like changing the font color,back color of every 2nd row,and others...?
Jan 7 '08 #4
debasisdas
8,127 Expert 4TB
----->>>>>
yes i've done it but how can i modify/edit the listview like changing the font color,back color of every 2nd row,and others...?
listview does not support all those properties directly.
You might need to use some 3rd party control for the same.
Jan 7 '08 #5
QVeen72
1,445 Expert 1GB
Hi,

To Alternate the Colours in ListView, You have to use API's (User32.dll, and Kernel32.dll). and loads of Codes in .bas module.
if you still Want, Check This

A Simple way out is to use a "FlexGrid" control, Changing any Property of this grid is quite simple..

Regards
Veena
Jan 7 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Hunters | last post by:
Once you reorder the listview items, largeicon or smallicon view will not follow the order of list or detail view which is the correct order. For example with a listview as...
2
by: fig000 | last post by:
Hi, I have an application that's running fine on development servers (web and database-sql server 2000). I'm updating a record through a third party component but I don't think the component...
2
by: Tony Meier | last post by:
I am using the WebBrowser control (Explorer.Shell.2) from within a VBA application, embedded on an MS Access form to display the contents of a local folder. By default on Windows 2000/XP the...
0
by: Tom | last post by:
Hi, I built a web application which uses Listview (written by c# and xml). I test it without problem on local machine. However it occurs the following error when I install it on remote server....
5
by: Praveen R | last post by:
Hi ! I am using a List view control to populate data onto. On the click event of the list view control, i need to find out whether the area clicked has any information of has no information. I...
11
by: Brian Henry | last post by:
Well here is the problem, I have a data set with about 9,000 to 20,000 people in it in the data table "people"... I am then reading it into a list view one at a time row by row... adding each...
4
by: Dilip | last post by:
hi all i m trying to make a windows explorer in my project where i need details view with some columns. but when i give this code at form load Private Sub Form1_Load(ByVal sender As...
3
by: V T | last post by:
Hello all, SQL Server 2000 documentation http://www.microsoft.com/technet/prodtechnol/sql/2000/reskit/part10/c3761.mspx states that if view is using "NOT NULL" columns of a base table, then...
12
by: Andrew Lias | last post by:
I've been given a task that I believe is, basically, impossible, but I'd like to see if there's a way to do it. What my boss wants me to do is to create a view, in SQL Server 2000, that will...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.