473,396 Members | 1,706 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,396 software developers and data experts.

SQL design vs VB design

Dear valuable experts,
I truly hope than You can suggest for me Your ideas how to resolve
design.
I developing relative small Access VB tool, for single user use only.
Access version 2003, but db saved for compatibility as ver. 2000.

Basic structure of this tool is dependent from my house departments
structure.
Each department owes their own table, where they can write inputs
necessary and dependent for annual budget analysis and estimates
spendings. Every table each row number or "account" number is
preformated - means is strongly regulated by our finance structure and
therefore can contain some numeric (financial) values or can be empty.
Like in this sample:
Account___Jan_Feb_Mar..etc
6110______123,00_234,00_432,00_22,00...etc
6125______45,45_678,03_12,01_87,10...etc
......
First steps was, I collect together values from each single department
tables in according to each rows account number.

Then I need calculate subtotals for each account logical group
subdivisions.
Like for this accounts 6199 = 6110+6125+6130.

For this purpose I created filtered queries, where only necessary
accounts come visible, and from those I extract each months total
values via DSum command. Works just fine from my form and I free on my
decision - either show values only on my screen, or output to new empty
table and then output by report.

My current problem is - choose the optimal design for very special
cases where totals is created by summing ones accounts and then
extracting by some others:
like this f.e. 9899 = 6199+7299-7533-7720+8100

One of my ideas is, create for each of these values another temporary
variable at form or subs level, then use dlookup to get those actual
values from tables following upper mentioned formula steps.

I not sure this is good idea! Because I need repeat this for each month
respectively.
My another opinions against of use of such complicated dlookup
structure - total performance can fall down.

Another idea is to use SQL design layout. First I filter accounts in
two subquery groups - one group where only pluses, respectively those
accounts where values can be totaled. Another group - for accounts
together who can be later extracted from first group totals.

Sorry for my long letter, but is this idea clear for You?
Hope - anybody can point me ahead with pros and cons -..
Thank You for Your time in advance-
Sincerely
Ainars.

Jul 10 '06 #1
5 1752
Hello again,
I see no answers to my question and for this can be at least two
reasons.
Summer holidays and very hot time around in Europe can make impact on
activity level of this n/g subscribers.
But another reason can be my yesterdays unclear formulation of my
problem.

In hope than someone with more experiences in Access VB can suggest
right way for exit out of current case.
So, in short again.
If You need extract values form multiple tables, then calculate
resulted totals and then like to store results in another temporary
table, what method do You use.
And what if - if You need ones values to sum on this, but other values
then extract from total?

Do You use pure SQL level calculations or is there idea than VB subs or
functions with Dlookup or Dsum is good enough for this purpose too?
For me it looks than more or less but both methods is complicated
enough because in correspondence to each account number there is (or
there is not) some integer values corresponding to each calendar
month..

While developing this small data collection/conversion tool I also need
keep in mind than my end user can be allowed to edit these formulas
later as necessary.
So - my general rule is "perfection in simplicity" :)
Not very easy for average programmer - and this is why I asked for Your
assistance.
Hope for any feedback in advance
Rgrds =
Ainars.

P.SI know than store back in table any aggregated or calculated
result is poor programmer methods, but as I mentioned before - this is
temporary data table.
Each time my user opens this continous form to read actual values -
there is warning popup message.
After user accept, all calculated table rows come deleted and new data
recorded in place. It takes 15- 30 sec on my Pentium4 computer.

A_M_IS wrote:
Dear valuable experts,
I truly hope than You can suggest for me Your ideas how to resolve
design.
I developing relative small Access VB tool, for single user use only.
Access version 2003, but db saved for compatibility as ver. 2000.

Basic structure of this tool is dependent from my house departments
structure.
Each department owes their own table, where they can write inputs
necessary and dependent for annual budget analysis and estimates
spendings. Every table each row number or "account" number is
preformated - means is strongly regulated by our finance structure and
therefore can contain some numeric (financial) values or can be empty.
Like in this sample:
Account___Jan_Feb_Mar..etc
6110______123,00_234,00_432,00_22,00...etc
6125______45,45_678,03_12,01_87,10...etc
.....
First steps was, I collect together values from each single department
tables in according to each rows account number.

Then I need calculate subtotals for each account logical group
subdivisions.
Like for this accounts 6199 = 6110+6125+6130.

For this purpose I created filtered queries, where only necessary
accounts come visible, and from those I extract each months total
values via DSum command. Works just fine from my form and I free on my
decision - either show values only on my screen, or output to new empty
table and then output by report.

My current problem is - choose the optimal design for very special
cases where totals is created by summing ones accounts and then
extracting by some others:
like this f.e. 9899 = 6199+7299-7533-7720+8100

One of my ideas is, create for each of these values another temporary
variable at form or subs level, then use dlookup to get those actual
values from tables following upper mentioned formula steps.

I not sure this is good idea! Because I need repeat this for each month
respectively.
My another opinions against of use of such complicated dlookup
structure - total performance can fall down.

Another idea is to use SQL design layout. First I filter accounts in
two subquery groups - one group where only pluses, respectively those
accounts where values can be totaled. Another group - for accounts
together who can be later extracted from first group totals.

Sorry for my long letter, but is this idea clear for You?
Hope - anybody can point me ahead with pros and cons -..
Thank You for Your time in advance-
Sincerely
Ainars.
Jul 11 '06 #2
Create another table with ledger codes or whatever that
you can join to, to get the sign of the sum

6199 = (+1)*6110 + (+1)*6125 + (-1)*6130 + (0)*6145

then you can sum all values in a simple query.

If the tables are compatible, use a union query to
join all the departments together.

(david)

"A_M_IS" <ai***@iname.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Dear valuable experts,
I truly hope than You can suggest for me Your ideas how to resolve
design.
I developing relative small Access VB tool, for single user use only.
Access version 2003, but db saved for compatibility as ver. 2000.

Basic structure of this tool is dependent from my house departments
structure.
Each department owes their own table, where they can write inputs
necessary and dependent for annual budget analysis and estimates
spendings. Every table each row number or "account" number is
preformated - means is strongly regulated by our finance structure and
therefore can contain some numeric (financial) values or can be empty.
Like in this sample:
Account___Jan_Feb_Mar..etc
6110______123,00_234,00_432,00_22,00...etc
6125______45,45_678,03_12,01_87,10...etc
.....
First steps was, I collect together values from each single department
tables in according to each rows account number.

Then I need calculate subtotals for each account logical group
subdivisions.
Like for this accounts 6199 = 6110+6125+6130.

For this purpose I created filtered queries, where only necessary
accounts come visible, and from those I extract each months total
values via DSum command. Works just fine from my form and I free on my
decision - either show values only on my screen, or output to new empty
table and then output by report.

My current problem is - choose the optimal design for very special
cases where totals is created by summing ones accounts and then
extracting by some others:
like this f.e. 9899 = 6199+7299-7533-7720+8100

One of my ideas is, create for each of these values another temporary
variable at form or subs level, then use dlookup to get those actual
values from tables following upper mentioned formula steps.

I not sure this is good idea! Because I need repeat this for each month
respectively.
My another opinions against of use of such complicated dlookup
structure - total performance can fall down.

Another idea is to use SQL design layout. First I filter accounts in
two subquery groups - one group where only pluses, respectively those
accounts where values can be totaled. Another group - for accounts
together who can be later extracted from first group totals.

Sorry for my long letter, but is this idea clear for You?
Hope - anybody can point me ahead with pros and cons -..
Thank You for Your time in advance-
Sincerely
Ainars.

Jul 12 '06 #3
Hello,
thank You David, for idea!

I just starting to brain out now, how to implement this multiplier
prefix in my case.

In fact - I already have another separate table with those ledger codes
and also with codes descriptions.

So, I have continuous form which is bind to new empty table.
In forms header I have command button to allow for end user load fresh
data each time. This code also tests for record count in bind table -
if any exists, then ask for delete action and load another fresh data.

Button code runs with two open recordsets - one rs with ledger codes
and another rs - empty table.
If ledger code is "regular" :) , then code just calling sub action and
collect data from eight separate department tables, and sum together if
found any inputs. Then sum is recorded to new table recordset according
to each month values.
(On this - how I understand from Your suggestion, I can simply use
Union select query. Why not? I can change my code, because I believe, I
can save on total running time. SQL union select action can run faster
than Dsum/Dlookup.)

Then, if ledger code is with **99 or even in some another cases with
very special codes - those I select out each time by filtering on the
fly, with select case code.
Then this code again runs easy until subdivisions sum.
Then I do dsum/lookup to named selection query, where only I selected
divisions of ledger codes together with month input values.

Yeah - I think I got it finally! Thank You again for Your smart advice!

Why not do implement Your idea this way?
First I can select all ledger rows with positive meaning values.
Extract values same way as I do with simplest cases and keep in
variables.
Then select seperately (give Query name with prefix "Neg") to another
ledger group rows whose values need to be extracted from first ones.
Then do my regular selected Dsum action and resulted values for each
month just multiply with (-1) and then sum again with earlier stored
values?
Even, how I think right now, is it not necessary to multiply each time
this with prefix...
(see my actual code:)

Case 8599
c1 = Nz(DSum("[m1]", "Q85Sum"), 0) 'there do lookup and store away my
regular values
c2 = Nz(DSum("[m2]", "Q85Sum"), 0)
c3 = Nz(DSum("[m3]", "Q85Sum"), 0)
....

why not can I just modify like this...

Case 8599
c1 = Nz(DSum("[m1]", "Q85Sum"), 0) - Nz(DSum("[m1]", "Q85SumNeg"), 0)
c2 = Nz(DSum("[m2]", "Q85Sum"), 0) - Nz(DSum("[m2]", "Q85SumNeg"), 0)
c3 = Nz(DSum("[m3]", "Q85Sum"), 0) - Nz(DSum("[m3]", "Q85SumNeg"), 0)
....

Is this the same with how You imagine on this? As I think this is not
absolute equal to Your idea, but I feel Myself You pointed me
positively!
What is still a bit unclear - and I see is discussed many times before
in this n/g, but only for different cases -
If developer need to agregate some values (like -sum, extract,
multiply, etc) then what method is most recommended one - VB method or
as I said there, pure SQL method?

I come to change my code now, then be back later with results.
Regards to You and to others, who started to think about my coding
question!
Ainars
david epsom dot com dot au wrote:
Create another table with ledger codes or whatever that
you can join to, to get the sign of the sum

6199 = (+1)*6110 + (+1)*6125 + (-1)*6130 + (0)*6145

then you can sum all values in a simple query.

If the tables are compatible, use a union query to
join all the departments together.

(david)

"A_M_IS" <ai***@iname.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Dear valuable experts,
I truly hope than You can suggest for me Your ideas how to resolve
design.
I developing relative small Access VB tool, for single user use only.
Access version 2003, but db saved for compatibility as ver. 2000.

Basic structure of this tool is dependent from my house departments
structure.
Each department owes their own table, where they can write inputs
necessary and dependent for annual budget analysis and estimates
spendings. Every table each row number or "account" number is
preformated - means is strongly regulated by our finance structure and
therefore can contain some numeric (financial) values or can be empty.
Like in this sample:
Account___Jan_Feb_Mar..etc
6110______123,00_234,00_432,00_22,00...etc
6125______45,45_678,03_12,01_87,10...etc
.....
First steps was, I collect together values from each single department
tables in according to each rows account number.

Then I need calculate subtotals for each account logical group
subdivisions.
Like for this accounts 6199 = 6110+6125+6130.

For this purpose I created filtered queries, where only necessary
accounts come visible, and from those I extract each months total
values via DSum command. Works just fine from my form and I free on my
decision - either show values only on my screen, or output to new empty
table and then output by report.

My current problem is - choose the optimal design for very special
cases where totals is created by summing ones accounts and then
extracting by some others:
like this f.e. 9899 = 6199+7299-7533-7720+8100

One of my ideas is, create for each of these values another temporary
variable at form or subs level, then use dlookup to get those actual
values from tables following upper mentioned formula steps.

I not sure this is good idea! Because I need repeat this for each month
respectively.
My another opinions against of use of such complicated dlookup
structure - total performance can fall down.

Another idea is to use SQL design layout. First I filter accounts in
two subquery groups - one group where only pluses, respectively those
accounts where values can be totaled. Another group - for accounts
together who can be later extracted from first group totals.

Sorry for my long letter, but is this idea clear for You?
Hope - anybody can point me ahead with pros and cons -..
Thank You for Your time in advance-
Sincerely
Ainars.
Jul 12 '06 #4
Pure SQL is faster, if you can get the logic right so that it works.

If you can't get the logic right for pure SQL, it means your tables
aren't designed right.

It is better to get your table design right, because it makes
complicated things easier.

In this newsgroup we talk about complicated things. If it was only
simple, table design and pure SQL would not matter, but we would
not talk about it here.
c3 = Nz(DSum("[m3]", "Q85Sum"), 0) - Nz(DSum("[m3]", "Q85SumNeg"), 0)
This takes twice as long, because two calls to DSum take twice
as long as one call to DSum.

If you only have simple reports and a small amount of data, it
does not matter how long it takes.

I have reports that take 15 minutes if I do not care about how fast
they are. I make them faster, and they are less than 1 second!

If they were only 3 seconds I would not care, but 15 minutes is too long.

(david)
"A_M_IS" <ai***@iname.comwrote in message
news:11**********************@35g2000cwc.googlegro ups.com...
Hello,
thank You David, for idea!

I just starting to brain out now, how to implement this multiplier
prefix in my case.

In fact - I already have another separate table with those ledger codes
and also with codes descriptions.

So, I have continuous form which is bind to new empty table.
In forms header I have command button to allow for end user load fresh
data each time. This code also tests for record count in bind table -
if any exists, then ask for delete action and load another fresh data.

Button code runs with two open recordsets - one rs with ledger codes
and another rs - empty table.
If ledger code is "regular" :) , then code just calling sub action and
collect data from eight separate department tables, and sum together if
found any inputs. Then sum is recorded to new table recordset according
to each month values.
(On this - how I understand from Your suggestion, I can simply use
Union select query. Why not? I can change my code, because I believe, I
can save on total running time. SQL union select action can run faster
than Dsum/Dlookup.)

Then, if ledger code is with **99 or even in some another cases with
very special codes - those I select out each time by filtering on the
fly, with select case code.
Then this code again runs easy until subdivisions sum.
Then I do dsum/lookup to named selection query, where only I selected
divisions of ledger codes together with month input values.

Yeah - I think I got it finally! Thank You again for Your smart advice!

Why not do implement Your idea this way?
First I can select all ledger rows with positive meaning values.
Extract values same way as I do with simplest cases and keep in
variables.
Then select seperately (give Query name with prefix "Neg") to another
ledger group rows whose values need to be extracted from first ones.
Then do my regular selected Dsum action and resulted values for each
month just multiply with (-1) and then sum again with earlier stored
values?
Even, how I think right now, is it not necessary to multiply each time
this with prefix...
(see my actual code:)

Case 8599
c1 = Nz(DSum("[m1]", "Q85Sum"), 0) 'there do lookup and store away my
regular values
c2 = Nz(DSum("[m2]", "Q85Sum"), 0)
c3 = Nz(DSum("[m3]", "Q85Sum"), 0)
...

why not can I just modify like this...

Case 8599
c1 = Nz(DSum("[m1]", "Q85Sum"), 0) - Nz(DSum("[m1]", "Q85SumNeg"), 0)
c2 = Nz(DSum("[m2]", "Q85Sum"), 0) - Nz(DSum("[m2]", "Q85SumNeg"), 0)
c3 = Nz(DSum("[m3]", "Q85Sum"), 0) - Nz(DSum("[m3]", "Q85SumNeg"), 0)
...

Is this the same with how You imagine on this? As I think this is not
absolute equal to Your idea, but I feel Myself You pointed me
positively!
What is still a bit unclear - and I see is discussed many times before
in this n/g, but only for different cases -
If developer need to agregate some values (like -sum, extract,
multiply, etc) then what method is most recommended one - VB method or
as I said there, pure SQL method?

I come to change my code now, then be back later with results.
Regards to You and to others, who started to think about my coding
question!
Ainars
david epsom dot com dot au wrote:
>Create another table with ledger codes or whatever that
you can join to, to get the sign of the sum

6199 = (+1)*6110 + (+1)*6125 + (-1)*6130 + (0)*6145

then you can sum all values in a simple query.

If the tables are compatible, use a union query to
join all the departments together.

(david)

"A_M_IS" <ai***@iname.comwrote in message
news:11**********************@h48g2000cwc.googleg roups.com...
Dear valuable experts,
I truly hope than You can suggest for me Your ideas how to resolve
design.
I developing relative small Access VB tool, for single user use only.
Access version 2003, but db saved for compatibility as ver. 2000.

Basic structure of this tool is dependent from my house departments
structure.
Each department owes their own table, where they can write inputs
necessary and dependent for annual budget analysis and estimates
spendings. Every table each row number or "account" number is
preformated - means is strongly regulated by our finance structure and
therefore can contain some numeric (financial) values or can be empty.
Like in this sample:
Account___Jan_Feb_Mar..etc
6110______123,00_234,00_432,00_22,00...etc
6125______45,45_678,03_12,01_87,10...etc
.....
First steps was, I collect together values from each single department
tables in according to each rows account number.

Then I need calculate subtotals for each account logical group
subdivisions.
Like for this accounts 6199 = 6110+6125+6130.

For this purpose I created filtered queries, where only necessary
accounts come visible, and from those I extract each months total
values via DSum command. Works just fine from my form and I free on my
decision - either show values only on my screen, or output to new empty
table and then output by report.

My current problem is - choose the optimal design for very special
cases where totals is created by summing ones accounts and then
extracting by some others:
like this f.e. 9899 = 6199+7299-7533-7720+8100

One of my ideas is, create for each of these values another temporary
variable at form or subs level, then use dlookup to get those actual
values from tables following upper mentioned formula steps.

I not sure this is good idea! Because I need repeat this for each month
respectively.
My another opinions against of use of such complicated dlookup
structure - total performance can fall down.

Another idea is to use SQL design layout. First I filter accounts in
two subquery groups - one group where only pluses, respectively those
accounts where values can be totaled. Another group - for accounts
together who can be later extracted from first group totals.

Sorry for my long letter, but is this idea clear for You?
Hope - anybody can point me ahead with pros and cons -..
Thank You for Your time in advance-
Sincerely
Ainars.

Jul 13 '06 #5
Thanks David, for spent time on my problem!

About my tables designs - yes, I can agree absolute with You, than
design can always be better.
I will brain out once more on forthcoming days my db designs by keeping
in mind Your last sentences.

BTW - I am lucky one, because this is not very urgent programming task
for me by now.
Actually I missed little bit to finish this job with a glance at end of
June (first half year). :P
(Accouter calculated problematic fields by handheld calculator) :/
Now I have enough time to develop current tool to more advanced one,
before next quarter is over...

Current Dsum data loads takes for me about 15- 30 s. depending on PC
power. Not many new table rows is generated, about ~ 300 in total.

Load time is - how I think not very crucial, and absolute not necessary
to load data every open time.
Only when changes can be done by departments. Those changes by
departments I can track by implementing in each table "edit" triggers.
In future when system be finished - then those activities can come
frequently, I bear that in mind too.

Most difficult part is to create elegant formulas, where user can
adjust formulas on the fly where necessary, without bothering me each
time.
One way can be create another table - save there formulas as strings,
then load versions by user will.
But again that can be poor design sample, that's why I said - I will
rethink idea twice before to go ahead next week.

Thanks again to You for ideas and rgrds -
Ainars.

david epsom dot com dot au wrote:
Pure SQL is faster, if you can get the logic right so that it works.

If you can't get the logic right for pure SQL, it means your tables
aren't designed right.

It is better to get your table design right, because it makes
complicated things easier.

In this newsgroup we talk about complicated things. If it was only
simple, table design and pure SQL would not matter, but we would
not talk about it here.
c3 = Nz(DSum("[m3]", "Q85Sum"), 0) - Nz(DSum("[m3]", "Q85SumNeg"), 0)

This takes twice as long, because two calls to DSum take twice
as long as one call to DSum.

If you only have simple reports and a small amount of data, it
does not matter how long it takes.

I have reports that take 15 minutes if I do not care about how fast
they are. I make them faster, and they are less than 1 second!

If they were only 3 seconds I would not care, but 15 minutes is too long.

(david)
"A_M_IS" <ai***@iname.comwrote in message
news:11**********************@35g2000cwc.googlegro ups.com...
Hello,
thank You David, for idea!

I just starting to brain out now, how to implement this multiplier
prefix in my case.

In fact - I already have another separate table with those ledger codes
and also with codes descriptions.

So, I have continuous form which is bind to new empty table.
In forms header I have command button to allow for end user load fresh
data each time. This code also tests for record count in bind table -
if any exists, then ask for delete action and load another fresh data.

Button code runs with two open recordsets - one rs with ledger codes
and another rs - empty table.
If ledger code is "regular" :) , then code just calling sub action and
collect data from eight separate department tables, and sum together if
found any inputs. Then sum is recorded to new table recordset according
to each month values.
(On this - how I understand from Your suggestion, I can simply use
Union select query. Why not? I can change my code, because I believe, I
can save on total running time. SQL union select action can run faster
than Dsum/Dlookup.)

Then, if ledger code is with **99 or even in some another cases with
very special codes - those I select out each time by filtering on the
fly, with select case code.
Then this code again runs easy until subdivisions sum.
Then I do dsum/lookup to named selection query, where only I selected
divisions of ledger codes together with month input values.

Yeah - I think I got it finally! Thank You again for Your smart advice!

Why not do implement Your idea this way?
First I can select all ledger rows with positive meaning values.
Extract values same way as I do with simplest cases and keep in
variables.
Then select seperately (give Query name with prefix "Neg") to another
ledger group rows whose values need to be extracted from first ones.
Then do my regular selected Dsum action and resulted values for each
month just multiply with (-1) and then sum again with earlier stored
values?
Even, how I think right now, is it not necessary to multiply each time
this with prefix...
(see my actual code:)

Case 8599
c1 = Nz(DSum("[m1]", "Q85Sum"), 0) 'there do lookup and store away my
regular values
c2 = Nz(DSum("[m2]", "Q85Sum"), 0)
c3 = Nz(DSum("[m3]", "Q85Sum"), 0)
...

why not can I just modify like this...

Case 8599
c1 = Nz(DSum("[m1]", "Q85Sum"), 0) - Nz(DSum("[m1]", "Q85SumNeg"), 0)
c2 = Nz(DSum("[m2]", "Q85Sum"), 0) - Nz(DSum("[m2]", "Q85SumNeg"), 0)
c3 = Nz(DSum("[m3]", "Q85Sum"), 0) - Nz(DSum("[m3]", "Q85SumNeg"), 0)
...

Is this the same with how You imagine on this? As I think this is not
absolute equal to Your idea, but I feel Myself You pointed me
positively!
What is still a bit unclear - and I see is discussed many times before
in this n/g, but only for different cases -
If developer need to agregate some values (like -sum, extract,
multiply, etc) then what method is most recommended one - VB method or
as I said there, pure SQL method?

I come to change my code now, then be back later with results.
Regards to You and to others, who started to think about my coding
question!
Ainars
david epsom dot com dot au wrote:
Create another table with ledger codes or whatever that
you can join to, to get the sign of the sum

6199 = (+1)*6110 + (+1)*6125 + (-1)*6130 + (0)*6145

then you can sum all values in a simple query.

If the tables are compatible, use a union query to
join all the departments together.

(david)

"A_M_IS" <ai***@iname.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Dear valuable experts,
I truly hope than You can suggest for me Your ideas how to resolve
design.
I developing relative small Access VB tool, for single user use only.
Access version 2003, but db saved for compatibility as ver. 2000.

Basic structure of this tool is dependent from my house departments
structure.
Each department owes their own table, where they can write inputs
necessary and dependent for annual budget analysis and estimates
spendings. Every table each row number or "account" number is
preformated - means is strongly regulated by our finance structure and
therefore can contain some numeric (financial) values or can be empty.
Like in this sample:
Account___Jan_Feb_Mar..etc
6110______123,00_234,00_432,00_22,00...etc
6125______45,45_678,03_12,01_87,10...etc
.....
First steps was, I collect together values from each single department
tables in according to each rows account number.

Then I need calculate subtotals for each account logical group
subdivisions.
Like for this accounts 6199 = 6110+6125+6130.

For this purpose I created filtered queries, where only necessary
accounts come visible, and from those I extract each months total
values via DSum command. Works just fine from my form and I free on my
decision - either show values only on my screen, or output to new empty
table and then output by report.

My current problem is - choose the optimal design for very special
cases where totals is created by summing ones accounts and then
extracting by some others:
like this f.e. 9899 = 6199+7299-7533-7720+8100

One of my ideas is, create for each of these values another temporary
variable at form or subs level, then use dlookup to get those actual
values from tables following upper mentioned formula steps.

I not sure this is good idea! Because I need repeat this for each month
respectively.
My another opinions against of use of such complicated dlookup
structure - total performance can fall down.

Another idea is to use SQL design layout. First I filter accounts in
two subquery groups - one group where only pluses, respectively those
accounts where values can be totaled. Another group - for accounts
together who can be later extracted from first group totals.

Sorry for my long letter, but is this idea clear for You?
Hope - anybody can point me ahead with pros and cons -..
Thank You for Your time in advance-
Sincerely
Ainars.
Jul 14 '06 #6

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

Similar topics

2
by: adb | last post by:
I came up with a replication configuration that is basically the result of all the restrictions of replication as well as the restrictions of allowable software on work PC's and I was curious if...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
0
by: Edward Diener | last post by:
In Borland's VCL it was possible to divide a component into design time and run time DLLs. The design time DLL would only be necessary when the programmer was setting a component's properties or...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: Paul Cheetham | last post by:
Hi, I have moved an application from VS2003 to VS2005, and I am now unable to view most of my forms in the designer. The majority of the forms in my project are derived from class PACForm,...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
19
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design...
10
by: vital | last post by:
Hi, I am designing the middle tier of a project. It has 6 classes and microsoft application data access block. The six classes are DBServices, Logger, ProjectServices ... etc. and all these...
4
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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...

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.