473,395 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Reformatting data into logical records

I have a local nonprofit that has a database with a rather unusual
record structure. The data about their customers is stored as one value
per record.

So the access table definition is:
Client#
DataValueType
DataValue

The data would look like this:
Client# DataValueType DataValue
12345 streetaddr 1001 s First St.
12345 City Tulsa
12345 State OK
12345 Zip 74101
12345 StartDate 1/1/2005
12345 TypeCust Retail
12345 Salesman Bill

and so on for each customer.
the net result is a very large file. And almost impossible to identify
missing data.

I would like to convert it into a normal record, something like this:

client#
Streetaddr
City
Zip
State
Startdate
TypeCust
Salesman

And a view of a record would look like the following if the table
contents were viewed:

Client Streetaddr City State Zip startdate typecust...
12345 1001 s First St Tulsa OK 74101 1/2/2005 Retail....
Bill

Anyone know any EASY ways to reformat the records?

Seems to me I would need to use VBA code to read the records, construct
an array, then write out a new record whenever a new client data starts.

Suggestions
Nov 13 '05 #1
1 1290
Bob Alston wrote:
I have a local nonprofit that has a database with a rather unusual
record structure. The data about their customers is stored as one value
per record.

So the access table definition is:
Client#
DataValueType
DataValue

The data would look like this:
Client# DataValueType DataValue
12345 streetaddr 1001 s First St.
12345 City Tulsa
12345 State OK
12345 Zip 74101
12345 StartDate 1/1/2005
12345 TypeCust Retail
12345 Salesman Bill

and so on for each customer.
the net result is a very large file. And almost impossible to identify
missing data.

I would like to convert it into a normal record, something like this:

client#
Streetaddr
City
Zip
State
Startdate
TypeCust
Salesman

And a view of a record would look like the following if the table
contents were viewed:

Client Streetaddr City State Zip startdate typecust...
12345 1001 s First St Tulsa OK 74101 1/2/2005 Retail....
Bill

Anyone know any EASY ways to reformat the records?

Seems to me I would need to use VBA code to read the records, construct
an array, then write out a new record whenever a new client data starts.

Suggestions

Solved. Use a cross tab query. Then base a new query on the cross tab
query.

Bob
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
0
by: Redd | last post by:
The following is a technical report on a data modeling project that was recently assigned to me by my professor. I post it so that anyone else who is studying databases and data modeling can have...
5
by: rettigcd | last post by:
I am using Access 2000. I have a query that I enter in sql that performs a left join: SELECT person.*,phone.* FROM person LEFT JOIN phone ON ((phone.person_id=person.person_id) AND...
15
by: Xarky | last post by:
Hi, Is it possible to make use of data files in C? If yes can someone tell how or suggest me a site from where I can learn them. Thanks in Advance for your patience.
5
by: Shibu | last post by:
Hi, I have a situation where I need to convert business objects to a flat table. The reverse is also required. I am using c# and Oracle ODP. I am looking for an easier method to do the below...
3
by: Chris Lane | last post by:
Hi, This is super annoying FrontPage like behavior. Does anybody know how I can stop the Visual Studio.NET IDE from reformatting my HTML? Thank You
7
by: Lloyd Sheen | last post by:
I know I have seen a way to stop the terrible reformatting that VS 2003 IDE does. Beyond that is MS going to do a better (could not do a worse) job of auto formatting. Every change I make to...
6
by: Abhishek Srivastava | last post by:
Hello All, I am developing a page which has a complex layout. This layout cannot be made using VS alone, so I have to go into the html view and edit the html myself. The problem is that...
3
by: serge | last post by:
How do I determine which method I should use if I want to optimize the performance of a database. I took Northwind's database to run my example. My query is I want to retrieve the Employees'...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.