Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Access Help required...

Thread Tools
 
Search this Thread
 
Old 18 February 2004, 04:19 PM
  #1  
ThePosh
Scooby Regular
Thread Starter
 
ThePosh's Avatar
 
Join Date: Nov 2002
Posts: 122
Likes: 0
Received 0 Likes on 0 Posts
Question Access Help required...

Help!!!

I cannot think how to do this at all - I'm sure it is simple but I just can't figure it out...

I have data such as:

Date abc
Reference abc
Amount abc
Product abc

Date abc
Reference abc
Amount abc
Product abc

Date abc
Reference abc
Amount abc
Product abc

And I want to translate so that Date, Reference, Amount and Product are column headers and abc are the values.

Cheers,

Posh
Old 19 February 2004, 12:55 AM
  #2  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Default

Edited to say, awww crud its in access, gimmie a few to think of something else, but you could just export to excel, do the stuff below then re-import 2 secs...

Quick way using excel without scripting:

Make sure your data is formatted thus in to columns:

Date abc
Reference abc
Amount abc
Product abc
Date abc
Reference abc
Amount abc
Product abc
Date abc
Reference abc
Amount abc
Product abc

Then go into Tools->Options->Custom Lists (tab)

Select NEW LIST from the "custom lists" list, in the "list entries" box type in the following one per line

Date
Reference
Amount
Product

Then press the Add button then OK

Highlight your whole data set in the sheet then go to Data-Sort

Leave as is but select the Options... button at the bottom and select your new entry from the list under "First key sort order", then press OK and OK

You will then end up with the following in the same order, so date entry 1 will line up with reference entry 1 still:

Date abc
Date abc
Date abc
Reference abc
Reference abc
Reference abc
Amount abc
Amount abc
Amount abc
Product abc
Product abc
Product abc

You can then cut and paste the data into a new sheet into the columns under headings

Date Reference Amount Product

Any Q's drop me a personal message, hope this helps,

Jules

Last edited by judgejules; 19 February 2004 at 01:05 AM.
Old 19 February 2004, 01:07 AM
  #3  
judgejules
Scooby Regular
 
judgejules's Avatar
 
Join Date: Nov 2000
Posts: 1,227
Likes: 0
Received 0 Likes on 0 Posts
Default

So I guess you're using Forms in access to display the data? or are you using a field in the table to define the type of record, then another field to store the data for that record?

What format is the data actually stored in the Tables view? same as above?

J
Old 19 February 2004, 09:32 AM
  #4  
ThePosh
Scooby Regular
Thread Starter
 
ThePosh's Avatar
 
Join Date: Nov 2002
Posts: 122
Likes: 0
Received 0 Likes on 0 Posts
Default

Cheers Jules - but the data will be too big to use effectively in Excel (in excel I can get it to work though!).

The data is an extract from our financial system. It is in a table in precisely the format above - over 2 fields. I'm not using any forms, I need to get the data into the right format so I can run some queries.

Posh
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
TylerD529
General Technical
2
09 October 2015 01:53 AM
Littleted
Computer & Technology Related
4
25 September 2015 09:55 PM
Hangarrat93
Insurance
11
25 September 2015 08:42 AM
farmerwrx
Computer & Technology Related
14
10 September 2015 11:59 AM



Quick Reply: Access Help required...



All times are GMT +1. The time now is 09:41 AM.