473,466 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating databses for variable records

I need to create a database where each record is an invoice originally
stored as a csv file. Currently these csv files are loaded in excel to
display them. Each invoice has a variable number of rows and variable
number of columns(see example below). The start of each row has a
document reference which is the same for every line of one invoice. How
can i create a database that can store and manipulate this kind of data.
I have only ever used fixed length data before.

Here is an example of the data i need to put in a databasethis shows an
example of how two invoices are represented, invoice number is always
first column of everyrow so could be used as index.(shown as if in excel
spreadsheet)

12345 HEADER 16/09/03
12345 ADDRESS 13 new street dullsville
12345 BILLLINE 17.5%VAT
51421 HEADER
51421 ADDRESS
51421 METER
51421 BILLINE
51421 BILLINE

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #1
1 1668
<Steve Wathen> wrote in message
news:3f*********************@news.frii.net...
I need to create a database where each record is an invoice originally
stored as a csv file. Currently these csv files are loaded in excel to
display them. Each invoice has a variable number of rows and variable
number of columns(see example below). The start of each row has a
document reference which is the same for every line of one invoice. How
can i create a database that can store and manipulate this kind of data.
I have only ever used fixed length data before.

Here is an example of the data i need to put in a databasethis shows an
example of how two invoices are represented, invoice number is always
first column of everyrow so could be used as index.(shown as if in excel
spreadsheet)

12345 HEADER 16/09/03
12345 ADDRESS 13 new street dullsville
12345 BILLLINE 17.5%VAT
51421 HEADER
51421 ADDRESS
51421 METER
51421 BILLINE
51421 BILLINE

Although I can see a variable number of rows per invoice, I don't see a
variable number of columns. It seems to me, that you have 3 columns
InvNumber, LineType and LineData - it's just that some have a null value for
LineData.

You need to decide on the table structure of the new database first. E.g.
decide between 2 table approach (tblInvoices & tblInvoiceItems) which is
more standard or whether it would be easier to use 1 table: tblInvoiceLines.

I suppose it depends how much of an application you have to write around
this, or do you just need the data in Access tables.

Fletcher

Nov 12 '05 #2

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

Similar topics

5
by: BP | last post by:
I get the following error: Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' /myweb4/authorised_user_page.asp, line 70 and line 70 of my code is: <% rsCheckUser1.Open...
4
by: shank | last post by:
I'm creating a spreadsheet online via ASP. I have the following at the page top... <% Response.contenttype = "application/vnd.ms-excel" %> <% Response.AddHeader "Content-Disposition",...
3
by: DataBard007 | last post by:
My Access 97 database has a form that contains text boxes that display people's names, addresses, phone numbers, etc. The record source is a single table. I created a NextRecord and Previous...
1
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access...
2
by: Chris via AccessMonster.com | last post by:
I have done something like this a million years ago my developer skills have diminished to nothing but now I am at a new job trying to regroup what I lost. This one came across my desk recently. I...
2
by: karmaverma | last post by:
I need help with this apparently simple problem. I have a table with the following records: Effective_Date Commodity Price 10/1/2005 0 5/1/2006 2750 10/1/2006 ...
5
by: tech.rawsteak | last post by:
I have a function that retrieves a user's login name from their workstation and looks it up on an employee table to return their full name (ie: jsmith -John Smith). Their full name is then...
2
by: Andy | last post by:
Hi guys I having a problem creating a report in Access 2003 project talking to a SQL database through and ODBC connect. After hours of trying things from Access Help, MSDN and Google I still...
7
by: wqmmnm | last post by:
How do I create an html list using php and mysql that also has the previous and next funtionality.
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.