Brett Barabash
BBarabash at TappeConstruction.com
Thu Oct 23 12:44:47 CDT 2003
That would be:
Set fld = rst.Fields("Field" & i)
-----Original Message-----
From: Mark Boyd [mailto:MarkBoyd at mcbeeassociates.com]
Sent: Thursday, October 23, 2003 12:28 PM
To: AccessD at databaseadvisors.com
Subject: [AccessD] Put fieldname into a variable
I would like to put a table's fieldname into a variable, and run code
like the following:
(I've omitted most of the code because of space)
Dim fld as Field
Dim i as Integer
Do until rst.EOF = True
i = i + 1
fld = rst![Field" & i & "]
... do processing
Loop
Any ideas how this can be done?
Mark Boyd
Sr. Systems Analyst
McBee Associates, Inc.
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
--------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.
Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.
Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software in conjunction with
virus detection software.