Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recordsets
Message
From
10/09/1998 11:37:35
 
 
To
10/09/1998 11:05:32
Frixos Kimonis
The Clancy Group / Dowcra
Harefield, United Kingdom
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00135065
Message ID:
00135086
Views:
10
>Am working on unbound dbgrid coding and want to be able to retrieve
>a certain value from a field in a recordset.
>
>I get the name of the field I want to find with :
>
>fieldName = RS.Fields(Count).Name
>
>but when it comes to retrieving the value out of this field
>like I would do normally i.e:
>
>descr = RS!Description
>
>I want instead to retrieve using the 'fieldName' value
>
>i.e
>
>descr = RS!fieldName <--- variable instead of hardwired db field
> name.
>
>I just cant seem to get the syntax right and have look everywhere for an example but no banana.
>
>Any one got the answer to this one?
>
>
>Thanks in Advance
>
>Frixos




Use this syntax:

desc = RS(variable)
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Previous
Reply
Map
View

Click here to load this message in the networking platform