Re: ADO -DAO problem?
- From: Paolo <Paolo@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 5 Aug 2009 03:44:01 -0700
Gerry,
actually the name property return the name of the i field in the field
collection where i is the index of the field. I'm pretty sure that
public_banker IS the name of your field! So what's the purpose of extracting
a name that you already know?
BTW the error is raised because the index must be a number so in your
example MsgBox (myRecordSet.Fields(0).Name) will return public_banker 'cause
public_banker is the first field in your data collection and the index begin
with 0 so the first field is identified by the index 0, the second field by
the index 1 and so on.
Cheers Paolo
"Gerry" wrote:
Paolo,.
myRecordSet.Open mysql
myRecordSet.Fields(public_banker).Name
MsgBox (myRecordSet.Fields(0).Name)
I have again a compile error: invalid use of property on
Name in
myRecordSet.Fields(public_banker).Name
Gerry
- Follow-Ups:
- Re: ADO -DAO problem?
- From: Gerry
- Re: ADO -DAO problem?
- References:
- ADO -DAO problem?
- From: Gerry
- RE: ADO -DAO problem?
- From: Paolo
- Re: ADO -DAO problem?
- From: Gerry
- Re: ADO -DAO problem?
- From: Paolo
- Re: ADO -DAO problem?
- From: Gerry
- ADO -DAO problem?
- Prev by Date: Re: User licenses and product keys for custom Access app
- Next by Date: Re: Count distinct number of days
- Previous by thread: Re: ADO -DAO problem?
- Next by thread: Re: ADO -DAO problem?
- Index(es):
Relevant Pages
|