DB size?

Rich said:
It sounds as though your macro is updating at snails pace, not flying ;)

Fortunately it is doing it on a continuous form so at least it is a downhill run :D

By the way here is a small challenge for you blokes with the coding. :)

Could you sort across a row A to Z. I can and do do it. There are 10 appointment slots on a row for each day. The actual appointments are not stored here. This is a visual thing so you can see what slots are taken but the slots must go across the row in ascending time order, bearing in mind that the 8th appointment made for a day might be at 7am and the first made for the day might be at 8pm.

Mike
 
I know that there are thousands and thousands, in the Netherlands alone, of "amatures" out there creating databases just to get what they want/need. And i understand the basics as well as the "child with a waterhead" as we call it. It starts something small and ends up doing everything in the world.

Its just that I AM a proffesional and see problems like these on a daily basis. You have a database that does the job, some day sooner or later (I hope for you later or even never) these halfway solutions are gonna byte (pun intended) you in the rear end. As they do all of my customers, and this allways happens when you asspecially DONT need it.

Aside from all that, there is the matter of supportebility. What happenes when you are no longer around, is it documented so someone else can maintain? I will bet NO.
I recently had a customer with a database that had:
1) code in a form
2) calling a macro that
3) called code in a module that
4) in turn called a macro to call code in another module.....

Works, yes, supportable, no... It takes for ever to backtrack, asspecially when the code is (as it was in this case) filled with goto's. It was a regular chalange (spelling), and they didnt want it but i think i would have gotten where they wanted to be faster by rebuilding the whole thing...

Greetz
 
Greetz

Actually I do have a form of documentation for the data base which is for my business partner in case something does happen to me.

I liken the professional such as yourself as a business that works on cars. The people such as myself only work on our own car and get to know it like the back of our hand.

Mike
 
Rich said:
Use a crosstab query

I am not sure that would work for what I do. The query I use has 12 months of dates and various other data some of which is totalled in a text box.

Also, if it sorted across the row and there was 7 blank slots would it put all of those to left.

Mike
 
Mike375 said:
Also, if it sorted across the row and there was 7 blank slots would it put all of those to left.

Mike

Code would, in fact MS provides an example of dynamic crosstab Reports
 
Code would, in fact MS provides an example of dynamic crosstab Reports

I assume then that a form can be based on such a query.
 
Mike375 said:
Greetz

Actually I do have a form of documentation for the data base which is for my business partner in case something does happen to me.
Wow you dont say, realy.... Thats a first for me :) good for you !

Mike375 said:
I liken the professional such as yourself as a business that works on cars. The people such as myself only work on our own car and get to know it like the back of our hand.

Mike
And if you dont document the back of your hand you (or your partner(s) ) will get into trouble. But you documented.... wow which makes it a bit less off a bad thing, proffesionally speaking offcourse. Because if it works it works....

Regards
 
Mike375 said:
By the way here is a small challenge for you blokes with the coding. :)

Could you sort across a row A to Z. I can and do do it. There are 10 appointment slots on a row for each day. The actual appointments are not stored here. This is a visual thing so you can see what slots are taken but the slots must go across the row in ascending time order, bearing in mind that the 8th appointment made for a day might be at 7am and the first made for the day might be at 8pm.

Mike
Anything that can be done using a macro, can USSUALY be done better by code....

Greetz
 
Rich said:
Code would, in fact MS provides an example of dynamic crosstab Reports

Rich,

I just looked up one o my Access books (Access 95) and it saying you can't sort on the cross tab if there are calculated fields of which I need at least one.

Mike
 
Anything that can be done using a macro, can USSUALY be done better by code....

No argument there but I was interested in how you fellows would do it. My way would be crude by your standards but it works 100% and is very simple, a bit of lateral thinking.

Mike
 
Article ID: Q109939
and Article ID: Q155489
should be helpful to you
 
Rich said:
Article ID: Q109939
and Article ID: Q155489
should be helpful to you

I have seen those type of articles referenced before....where do they come from.

What I do at present is that when a time is clicked from a combo a macro runs that inserts the time in the first available blank box. Then a macro a opens a form at a new record from a table with one field and then goes to the first box on the row to be sorted and a SetValue sticks the time from the box in the form and then the macro goes to another new record action and then a SetValue puts the time in from the second box and so on until a blank box or No 10 is reached. The macro then sorts the field in the open form for A to Z and then starts a series of SetValue actions to put the times in the boxes across the row. The form is then closed and a query deletes all the records and Presto, all is done.

Mike
 
The form is then closed and a query deletes all the records and Presto, all is done.
Eventually :p


The articles are in the MS Knowledge base, which I think is still downloadable
 
Sorry Mike

This really wasn't a DB question? Think of it as a survey of what other peoples database have. Mike really is the only one who has answered.

Qty: Querys
forms
tables
etc...
 
I can't give any examples of mine, I've never bothered to count any of the objects, it just does what I want it to do.
Is your question important or just a general enquiry?
 
Not important

I started in Watercooler and ended up here? It's not important just making conversation.
 
Mike375 said:
But you have to handle the 20 categories.

There are basically three sections.

In one table all the prospects are strored and one field has a number from 1 to 20 for the category and another field has a number from 1 to 15 which identifies the salesman with the prospect. Thuis salesman number 4 might have prospect categories 4, 11 and 16.

There is another table which has the various calling and selling goals for each day of the week. There is another table that takes this data for each day so that a running total is obtained. The data is physically appended since that allows calling goals to be changed between a starting date and finishing date. Thus allowance can be made for holidays etc.

There is another table that a new record is created when each call is made.

There is another table that holds summary data of the above table because the above table gets too big. The summary data makes one record for all the calls on a given day for each category.

Then there are 15 tables for a diary for each salesman. Appointments are stored in one table but the 15 tables display appointmenst and allow appointments to be made for the appropriate salesman.

There are 22 queries, 26 forms, 24 macros and 2 tables for each category. All of these replicated 20 times and of course with different names.

The data in each table is all different because the various calling goals are different for different categories of prospect as are the starting and finishing dates.

In addition there are another bunch of queries, tables etc that keep track of prospects being consumed and also replacing the names from a large holding table.

The actuall calling is done from one screen and when a category of prospect is selected then the record source is changed.

Even if you could integrate it into one that would not be successful because quite often a single category is hired out. I make a blank data base and just import the queries, macros etc for one of the categories plus the other objects that do the statistical results.

Mike

Firstly, I 100% concur with Pat, your data IS NOT normalized at all:

Just an insight, but, you don't need 15 diary tables!!!! One flat table will do this job just dandy!

Unique ID: our key for indexing
Salesman: System ID (a number hoopefully)
Date: the date
Time: the time
To do: what to do
Etc.

That would do lovely for every salesperson.

Access doesn't care about the amount of records it needs to look at be it 1 or 100000, just that it's got the smallest number of bytes to look at.

So the above would be
Number
Number
Date/Time
Date/Time
Memo (hopefully just text)

running a query on this type of table will be FAR better than looking at 15.

(BTW I have a huge database which has 1000+ employees on it, apart from the unique identifiers NO information is repeated in any of the 20 tables that record DIFFERENT info on them, the queries do that!)

back to the question:

A DB of 1mb or 100mb will work if the data is properly stored, not repeated, given the smallest type of data to accommodate it (i.e interger is smaller than single, acn iI use an interger? etc.) and indexed correctly.

So, I wouldn't worry about the size of the DB, it's what happens at run time.
If you have 3000 forms, say, this will be a big DB Megabyte-wise. That doesn't matter it's how much memory is being used at runtime.

hope this helps.
 
somebody has been busy

Thanks Pat that's a baseline.

I guess without my dry-eraser pen and white board I don't explain things very well?
 

Users who are viewing this thread

Back
Top Bottom