Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 8th, 2003, 07:46 AM
alkirui alkirui is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: UK
Posts: 1 alkirui User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Moving values from cell below to the cell next to

Hi,

I have a bit of a puzzling problem.

I have a large set of data in Access part of which appears as follows:

Field 1, Field 2
Data A
Data A1
Data B
Data B1
Data C
Data C1 etc..

I would like to move the A1, B1, C1 etc. from the row below, to become adjacent to the A, B C etc. so that in the end I have data as below:

Field 1, Field 2
Data A, Data A1
Data B, Data B1
Data C, Data C1
etc..

Does anyone know how to do this? (I hope I explained it well, please let me know if I can make it clearer)

Thanks,
Allan

Reply With Quote
  #2  
Old December 9th, 2003, 09:54 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
One question. is there a really easy way to identify which to rows go together (other then it is located on after the other)?

If you can only identify them one after the other then I would do it this way

1. You will create a temp table with the fields you need.
2. You will write VBA code (using DAO or ADO) to open the Org Table and loop through it. You will take the first row and put it in the first filed of the new table and you will take the second row and put it in the second field of the new table. You will loop through untill you are done.

try writing the VBA code and let us know if you need help.

The reason for the first question, is becuase if the is a way to identify which two rows go together, we might be able to write a SQL statement to do what you want. To do this you have to be able to identify every row that will go into field one of the new table and link that to the secondary item (row) that will be going into field2 of the new table.

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Moving values from cell below to the cell next to


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT