home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Using DataGrid Control 6.0 in VB

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1589
Discussions: 200,925, Posts: 2,379,128, Members: 246,291
Old July 28th, 2005, 01:13 AM   Digg it!   #1 (permalink)
Member
 
Acid_ICE24's Avatar
 
Join Date: Jul 2005
Location: Cavite, Phil.
Posts: 94
Question
Using DataGrid Control 6.0 in VB

hello! i'm trying to display a record from an SQL Server database using Visual Basic 6.0. I've decided to use a DataGrid to display a name and some details in it. But when I executed the program, an err msg popped, saying: "Method or data member not found." Here's a snippet of my code:

With DataGrid1
.DataSource = rs

.Row = 1: .Col = 1
.Text = rs!Name
...

I clicked OK on the error msg and the ".DataSource" property was highlighted. Can someone pls help me with this?
__________________
keep 'em comin...
Acid_ICE24 is offline   Reply With Quote
Old July 28th, 2005, 09:20 PM     #2 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
In Visual Basic 6, when you assign an object to a variable or property--as opposed to a value type set to a variable or property, you must use the Set keyword. Therefore, you need to say Set .Datasource = rs . Visual Basic .Net is not like this.
Creosote is offline   Reply With Quote
Old July 28th, 2005, 10:04 PM     #3 (permalink)
Member
 
Acid_ICE24's Avatar
 
Join Date: Jul 2005
Location: Cavite, Phil.
Posts: 94
hey, thanks! It worked!
Acid_ICE24 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Self control M_Six IMO Community 23 July 28th, 2003 09:54 AM
parental control sixf00t4 IMO Community 13 March 20th, 2003 11:28 PM
I need control! LilMsGreenEyes Applications and Operating Systems 14 February 24th, 2003 10:20 PM
PLEASE HELP!! Cursor Control (or Un-control) sk8er475 General Tech Discussion 7 December 21st, 2002 05:34 PM
M$ to remote control pc.....i think Linkin' Park Applications and Operating Systems 1 May 2nd, 2002 12:36 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2865)
Obama the Muslim (14)
Is the PSU I received dead? (10)
windows vista security holes (9)
Foreign voltage (10)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (10)
Print spooler problem (13)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
Ideal cheap graph card for PC-Gamin.. (15)
New Computer wont recognize XP disc (7)
EVGA 9800 gtx help with finding a g.. (8)
World's largest Monopoly Game using.. (331)
Recent Discussions
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)
Have you switched yet? (84)
Install XP pro and a Vista laptop ?? (10)
Wireless Router+Cable Modems and Much.. (0)
Optical Audio A-B Switch (1)
windows vista security holes (9)
Fire in DVD (0)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
EVGA 9800 gtx help with finding a goo.. (8)
Problem with speed step/turbo boost? (1)
Modern Warfare 2: Who Bought It? (61)
SIS 740 and Widescreen (8)


All times are GMT -4. The time now is 01:00 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28