Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 26th, 2004, 01:37 AM
DavidShe DavidShe is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 DavidShe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
New Table form one column

Hi Everybody

I have a table with three columns

http://homepages.paradise.net.nz/davidshe select Access link

I have set out the original file and the required result. The original file contains up to 15 difference types of records,and Record Invoice is just one of them. The record types vary in the number of Lines.

The number sequence is created in excell and keeps the records in order.


C1 C2 C3
Record Invoice 10515 1
Record Invoice 10515-0015 2
Record Invoice 15/1/2004 3
Record Invoice $75.00 4

I would like to automate the conversion process to automatically create the new table,

Could I please have help with the code and the type of query required.

Thanks David

Last edited by DavidShe : December 28th, 2004 at 04:57 AM. Reason: Update My original posting based on response.

Reply With Quote
  #2  
Old December 26th, 2004, 12:45 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Hi David,

If this is just a one time make a table to transfer the data from your existing table, then I can suggest a method that will be pretty quick and easy to do. All of this assumes of course that your C3 column is your unique number for each field of your new table. Example 1 will always identify the Code. 2 will always identify the Inv No. 3 will always identify the Date and 4 will always identify the Amount. If that is correct, then create your new table with the fields layed out like you want. Save the table and create a select query based on this new table. Next create a select query based on your old table and use the C3 column to filter by. For example filter by 1 will display all the records with the Code. Then simply copy the column and paste it into your other query in the appropriate column. Do the same thing again only filter by 2 and then copy and paste those records into the appropriate column and so forth. This is pretty easy to do and will be fairly quick. I could write you the code to do this by looping through the recordset and updating your new table etc., but I think you will find this method much quicker and then you can delete the queries when finished.

Just a simple suggestion
lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > New Table form one column


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 4 hosted by Hostway
Stay green...Green IT