Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Get Field Names for an Access 2003 table

Posted on 2004-10-21
2
159 Views
Last Modified: 2006-11-17
If I'm walking a record - field by field - using the .Fields(index) method is it also possible to pick up the field name at the same time?.
0
Comment
Question by:Adlerm
2 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 50 total points
ID: 12368067
Hello Adlerm,

.fields(index).name

Pete
0
 
LVL 1

Expert Comment

by:MrAdrianTaylor
ID: 12371944

dim fld as dao.field

For Each fld In rs.Fields
       debug print fld.Name
       debug.print fld.value
next

rgds, Adrian
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question