Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / July 2006

Tip: Looking for answers? Try searching our database.

Looping through records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chuck - 25 Jul 2006 11:29 GMT
Not sure if this is the correct newsgroup...

I have imported an Excel spreadsheet that has the appearance of a report
(headings, totals, etc).  It imports easily and each column becomes a field
in a table very nicely.  I can build a table stripping out unnecessary
information.  One issue I cannot figure out is as follows.

The first column and the first record of the spreadsheet contains the
department name in which employees belong.  The second column through the
tenth column contain employee information, however, each line after the
first does not contain the department name until it changes to a new
department listing the employees in that department.  This continues
throughout the report.

The imported information has all the records but not the department name on
each employee.  How do I loop through the records, reading the one record
containing the department name and populating it into the field for each
employee in that department?  Then find the next department name, and
populate its name into the following employees, and so on.

Any help would be appreciated.  Thanks
Sheila D - 25 Jul 2006 14:14 GMT
I'd say you have to do this in Excel before you import to Access. Access has
no way of knowing which group belongs together unless you identify the
department before importing.

Sheila
www.c-i-m-s.com

> Not sure if this is the correct newsgroup...
>
[quoted text clipped - 17 lines]
>
> Any help would be appreciated.  Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.