473,809 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Plz Help Me Buiding A Project In Ms Access

1 New Member
Presently I'm dealing with a data base with the structure as under:

1.Source document is an excel file which contains thousands of rows ( item)& multiple columns ( relating to each individual item)which includes Text as well as numbers.
2.Source document is generated on a daily basis i.e.on each new day, a new file will be generated.
3.Requirement is to perform calculations based on each row( item) which will include cumulative,aver age,maximum,min imum,etc based on a number of previous days.
4.& to prepare summary report/s based on 3,For example:

Name of item; Date ; Average for last 7 days ; Maximum for last 7 days ; Minimum for last 7 days,ETC



Please advise what should be the best way to achieve these tasks.

I'm trying to import the source documents in access table ( all days in a single table), then to make automatic sub tables / split the tables based on each row( item) , as we need calculation based on each individual items.

Problem I'm experiencing is : 1.How to link all the tables based on a single/multiple fields in a single click.
2.How to generate a query based on 1, in a single click.
3.What is the best way to perform vertical calculation in access, example total of last 7 days,etc.

Use of any other sources like Access Add-ins or any other source of similar nature to facilitate the tasks.

Please advise.
Aug 27 '07 #1
1 1617
Jim Doherty
897 Recognized Expert Contributor
Presently I'm dealing with a data base with the structure as under:

1.Source document is an excel file which contains thousands of rows ( item)& multiple columns ( relating to each individual item)which includes Text as well as numbers.
2.Source document is generated on a daily basis i.e.on each new day, a new file will be generated.
3.Requirement is to perform calculations based on each row( item) which will include cumulative,aver age,maximum,min imum,etc based on a number of previous days.
4.& to prepare summary report/s based on 3,For example:

Name of item; Date ; Average for last 7 days ; Maximum for last 7 days ; Minimum for last 7 days,ETC



Please advise what should be the best way to achieve these tasks.

I'm trying to import the source documents in access table ( all days in a single table), then to make automatic sub tables / split the tables based on each row( item) , as we need calculation based on each individual items.

Problem I'm experiencing is : 1.How to link all the tables based on a single/multiple fields in a single click.
2.How to generate a query based on 1, in a single click.
3.What is the best way to perform vertical calculation in access, example total of last 7 days,etc.

Use of any other sources like Access Add-ins or any other source of similar nature to facilitate the tasks.

Please advise.
My advice to you would be first and foremost determine your projected data size

Thousands of records per day equals not very long before you would be considering upsizing to SQL Server. Access 2000 database has datasize limitations that you must take into account. Don't be frightened off by this though.... just bear it in mind. You will be importing a fair few spreadsheets before you reach the 2GB limit.

If you have have no control over the source document the questions you have to ask yourself are these:- where does the source document come from, is it consistent, is it clean data. If I get the source document from multiple suppliers do they all validate their data in the manner I would wish? invariably not, so you have to consider the lowest common denominator taking into account the poorest example of the bunch and thus set routines in place to validate and clean any imported data to match the stringency tests that ANY RDMS database platform would demand to keep integrity

With your situation you have a clean slate so to speak and the design for import and storage is a matter for you as the designer to be comfortable with. It will not be long before you will be saying to yourself...hmmm if only I'd done it this way or that ..we all do that so nothing new there.

On the face of it my advice for the importation would to store the production data (the actual successfully imported data you intend to work with) in a single table....most of anything you develop from thereon whether it be queries forms, will be referencing a single object rather than working with many.

It is common for a spreadsheet to have DENORMALISED data in it...that is to say a customers name might be in the spreadsheet several thousand times as might also be a unque reference number (particularly where this has come from other DBMS systems). The question then for me would be this 'Once I have imported the data to my single table are there any routines I could run in here that would speed things up?... yes there are ....extract all those unique customer names and their uniques references (if indeed they are unique) and place them in a table of their own in my system I then could search quickly on those as opposed to say 4 million rows in the main table and it goes on from there.........e xtract all the product codes put them in their own table....etc etc.

What do we mean by extract? I mean you 'query' the main table using parameters to return datasets you require. This can be one or many queries. If you design intelligently enough you will realise that you can reduce your physical QUERY objects to a minimum by having as a generic query as possible amended at runtime merely by having parameters passed to it

The single table principle will aid your VERTICAL calculations you speak of (functions of MIN,MAX SUM,AVG to name but few) because you will only ever have the one column to contend with as opposed to several columns which would be the case if you were to split your data over numerous tables ie: table of imports for Wednesday Monday,Tuesday, Saturday....ooo ps let me scroll a minute....hmmm is that the Saturday this week table or last week, why arent all these table objects listed in alphabetical order by day and so on. I'm sure you can visualise what I am talking about... if not you will in time.

The principle of what you wish conceptually is a common activity of Access (to import spreadsheets and work with them) how you do it is a matter of technique.

Import into a single table run consistency checks over the data and if it is ok move it to the main production table within your system as an append ..that is the method I employ....impor t.check...move. ...truncate(or delete from) the import table. (Access has the lovely feature of shifting any import failures to a table of import errors that it creates on the fly itself and which you will doubtless at some stage see in the database window (if you use the .MDB format)

I won't go into the usual 'How do you deal with UPDATES' bit because I am assuming you have provided to you an original source document that never changes at the provider end and that you are the last in the chain so to speak?

If I am reading you correctly your db is a relatvely new build? if this is the case then each of the elements you referred to importations,qu eries,calculati ons reports will be incremental in the development process Access will eat it overall have a fun time building it.

On the question of Add ins and suchlike? tons of stuff out there for instance you want to output a dataset to excel for yourself for instance made up of aggregated queried data defined at runtime by yourself.no problem hit the button and out it goes.you just have to incorporate this miriad of functionality when the time comes and it is appropriate to do so.

I wish you luck in the build the good folks on here will doubtless be pleased to help and advise along the way provided of course sufficient information is to hand ...remember We/I sit here with a blindfold on whereas you know your system and aims :)))

Jim
Aug 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
6292
by: damjanu | last post by:
Hi All; I need little help. I have a datasheet form. I allow user to do 'filter by selection'. My form contains a column with values. As user changes selections, I want to calculate totals. I can do this the first time the form loads.
4
1423
by: bdj | last post by:
Hello! How to make reports of resource-plan in MS-project accessible even if you don't have MS-project installed? Can you use ODBC from Access for this? Or Perl, or something else? /Bjørn
1
5063
by: Marc | last post by:
Here goes... Outlook 2003 -> Access -> Crystal Reports ...via VB 6.0 code Basically I have a VB 6.0 project working on my machine. All with the click of a button , the Vb code extracts rows from the Calender folder of Outlook 2003, and makes a table in Access based on these rows and then a crystal report is created.
5
1579
by: z. f. | last post by:
Hi, I'm working on a web project and i create classes to do business logic and connect to DB. i also need a windows application to do the same functionality as defined in classes inside the ASP.NET project. when i reference the web project DLL (inside the BIN directory) I successfully make a call to a function and get return value. but this is just a test and when trying to access the application
6
3381
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free) I installed FrontPage server extensions to IIS on my computer while following instructions in a Microsoft ASP.Net MCSD training book. After installing the FrontPage Server Extensions I cannot create a new
29
2828
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. How do I move this project/solution from a local development xp pro computer which uses IIS/localhost, to another xp pro computer that is on a Windows 2003 server domain. I want to be able to use the Windows 2003 server IIS instead of localhost.
24
2797
by: =?Utf-8?B?RHIuIFMu?= | last post by:
I am incorporating three existing programs into a new "all in one" program. I have added the three projects to the new all in one project. How do I instruct the new initial menu to launch the main menu in each one? I have tried using the DIM statement with .ShowDialog, however, the forms are not recognized as they are listed in seperate projects. Please advise. Thanks, Dr. S.
3
13672
by: Jeff | last post by:
I have a solution with two projects. Project A is the startup project, while Project B serves as the project with the data logic. At run time, the first thing I need to do is write to Project B's app.config. I've referenced System.configuration.dll within Project B, and from one of the classes inside Project B's namespace, I'm trying to use ConfigurationManager to write to its app.config. Unfortunately, it only finds Project A's...
0
10637
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10115
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9199
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.