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

Editable query / continuous form with aggregate fields: how?

Hi!

I would like to make an editable continous form, where most
fields will be from table A and editable, except 1-3 fields are
a glimpse into table B and uneditable. Table A relate to table B
in one-to-many relation. I don't need to see all values in B
that relate to the particular record in A, just one value in
each field in B, preferably the last entered.

This is to ease a person that need to manually fix and encode
some of the records.

However, this means an aggregate value (last) upon B's fields
side by side with values from table A. This render the query
uneditable and hence the form also uneditable.

I tried to work on it the form itself using unbounded fields,
but since it is a continuous form, obviously each time the value
in the unbounded fields change, it change in every display of
the record. So it doesn't work.

I tried the aggregate functions, but it quite a performance hit,
and there is no DLast.

I am thinking to use a "scratch" table to contain temporary
value of the B table, but since the operator may jump to other
forms to edit value in B as well, means the scratch table will
have to be rewritten avery time that happen.

Is there anyway to make this work in Access?

Thank you!

--
(Stephan Paul) Arif Sahari Wibowo
_____ _____ _____ _____
/____ /____/ /____/ /____
_____/ / / / _____/ http://www.arifsaha.com/
Jan 18 '06 #1
3 4568
The domain aggregate functions would be the simplest to implement, though
performance will be woeful if you have 3 per record and multiple rows.
DMax() should return the highest value or the most recent date. If you want
the value from one field sorted in descending order by another field, you
could use this extended version of DLookup():
http://allenbrowne.com/ser-42.html

If your user only really needs to see the extended information for the
selected row of the continuous form, you could put the extra text boxes in
the Form Footer section, looking up the extra fields with a series of
calculated controls or even a listbox or a datasheet subform. That would
solve the performance issue.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"S P Arif Sahari Wibowo" <ar******@yahoo.com> wrote in message
news:Pi******************************@localhost.lo caldomain...
Hi!

I would like to make an editable continous form, where most fields will be
from table A and editable, except 1-3 fields are a glimpse into table B
and uneditable. Table A relate to table B in one-to-many relation. I don't
need to see all values in B that relate to the particular record in A,
just one value in each field in B, preferably the last entered.

This is to ease a person that need to manually fix and encode some of the
records.

However, this means an aggregate value (last) upon B's fields side by side
with values from table A. This render the query uneditable and hence the
form also uneditable.

I tried to work on it the form itself using unbounded fields, but since it
is a continuous form, obviously each time the value in the unbounded
fields change, it change in every display of the record. So it doesn't
work.

I tried the aggregate functions, but it quite a performance hit, and there
is no DLast.

I am thinking to use a "scratch" table to contain temporary value of the B
table, but since the operator may jump to other forms to edit value in B
as well, means the scratch table will have to be rewritten avery time that
happen.

Jan 18 '06 #2
I often just put up a extra form to the right of the existing form (that
means the continues form is actually a sub-form).

This arrangement allows a many to many to be displayed.

Here is some screen shots of what I mean...might give you some ideas....
http://www.members.shaw.ca/AlbertKal...icles/Grid.htm

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Jan 18 '06 #3
On Wed, 18 Jan 2006, Allen Browne wrote:
The domain aggregate functions would be the simplest to
implement, though performance will be woeful if you have 3 per
record and multiple rows.
Yes performance doesn't seems good.
Is the performance for the domain aggregate functions depend on
the number of row in the query or the number of row displayed at
one time?
If your user only really needs to see the extended information
for the selected row of the continuous form, you could put the
extra text boxes in the Form Footer section, looking up the
extra fields with a series of calculated controls or even a
listbox or a datasheet subform.
On Wed, 18 Jan 2006, Albert D. Kallal wrote: I often just put up a extra form to the right of the existing
form (that means the continues form is actually a sub-form).
This arrangement allows a many to many to be displayed.


There two suggestions are similar, thanks, I did something like
that before. But for this particular manual audit, I need to put
up only single value from the table B for each record in A.

I guess there is no other way than make temporary tables? Let's
see whether the performance is acceptable.

Thank you!

--
(Stephan Paul) Arif Sahari Wibowo
_____ _____ _____ _____
/____ /____/ /____/ /____
_____/ / / / _____/ http://www.arifsaha.com/
Jan 18 '06 #4

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

Similar topics

20
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
3
by: MX1 | last post by:
I have a query written in MS Access that has a few calculated fields. Is it possible to refer to that query in a form field. I'd like the form field to show the sum of one of the columns from the...
5
by: Kevin Myers | last post by:
In MS Access 2000 I am developing a form for editing and viewing the combined data from half a dozen tables. When I include all but one of the tables in the source query for the form, everything...
7
by: deko | last post by:
SELECT tblTxAcct.TxAcctName, tblTxType.TxTypeName, Nz(qryTxAcctListCt.TxCount, 0) AS TxCt FROM (tblTxAcct INNER JOIN tblTxType ON tblTxAcct.TxType_ID=tblTxType.TxType_ID) LEFT JOIN qryTxAcctListCt...
15
by: Rolan | last post by:
There must be a way to enhance the performance of a query, or find a plausible workaround, but I seem to be hitting a wall. I have tried a few tweaks, however, there has been no improvement. ...
4
by: Javier Gomez | last post by:
I have a query field which is a non editable field because is a function's result. Due to I need to edit the information, Can you please suggest me any solution for this problem?? (No matter...
3
by: rogynskyy | last post by:
Hi guys, I'm running MSDE 2000 A on Win XP I've got a database with several tables, all of the tables display data in query manager. I wrote this simple query: Select
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
6
by: Kelii | last post by:
Hello, So I have a form which shows all items available for sale, when it was last sold, where it was last sold, and whether it is active or inactive. I would like to be able to edit the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...

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.