473,405 Members | 2,141 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,405 software developers and data experts.

a2k getting multi-user right from the off

Hi,

I feel I have a good learning opportunity here. I have been asked to
knock up a simple db for managing lettings of rooms and halls. I'm
confident about the design but want to make it multi-user even though
it's not strictly necessary right now.

I've not much experience in this even though i've read the correct
websites that have been listed here many times, down to tips about not
using domain aggregrate functions to improve performance (admittedly
that confuses me as I don't see how I could get by without them, but I
digress).

I do have three questions, one general related to the above and two
specific,

First, if you do want to develop a simple multi-user database, what
basic tips would anyone give? I reckon this one will use optimistic
locking and won't be used by more than 10 people at a time, and
probably just 2 in most cases.
What things could I design into (and out of) my app that will save me
grief later on?

Secondly, if I'm distributing a runtime only version and have split
into front and back-ends, how do the users (who don't have Access)
control security? I presume I have to design a form and use VBA to
allow them access to users and passwords? In this scenario I guess the
workgroup security file would be on the server with the tables?

Finally what tips are there for testing on networks? Does working on a
domain vs p2p model make any difference in how Access works?
thanks
Deano (multi-user noobie)
Nov 13 '05 #1
10 1623
Deano wrote:

I've not much experience in this even though i've read the correct
websites that have been listed here many times, down to tips about not
using domain aggregrate functions to improve performance (admittedly
that confuses me as I don't see how I could get by without them, but I
digress).


I haven't used a Domain Aggregate Function in this century. They used to
be SLOW, or at least that is my recollection and certainly the reason,
good or bad, that I abandoned them; but I believe that has changed and
that they are quite satisfactorily speedy now?
Nov 13 '05 #2
Lyle Fairfield wrote:
Deano wrote:

I've not much experience in this even though i've read the correct
websites that have been listed here many times, down to tips about
not using domain aggregrate functions to improve performance
(admittedly that confuses me as I don't see how I could get by
without them, but I digress).


I haven't used a Domain Aggregate Function in this century. They used
to be SLOW, or at least that is my recollection and certainly the
reason, good or bad, that I abandoned them; but I believe that has
changed and that they are quite satisfactorily speedy now?


Well i'd love to hear from people about this because they are so handy,
not least of all in reports where I can use them to count totals and
use them with immediate IF statements to check for nulls etc.
Nov 13 '05 #3
Check with Trevor Best and see if his replacements for domain functions
make a large difference. Use GetTickCount from (maybe) Randy Birch's
website VBNet, which in spite of its name is for VB6, *not* VB.NET.
Then test and decide for yourself. Should prove a very handy function
when testing on a network. Some other helpful stuff is in Peter
Vogel's book, Visual Basic Object and Component Handbook, which you can
read about here:

http://www.amazon.com/exec/obidos/AS...406578-8650243

He has code that allows you to test various things in your application
so you know where to look for problems.

Nov 13 '05 #4
Deano wrote:
Lyle Fairfield wrote:
Deano wrote:

I've not much experience in this even though i've read the correct
websites that have been listed here many times, down to tips about
not using domain aggregrate functions to improve performance
(admittedly that confuses me as I don't see how I could get by
without them, but I digress).


I haven't used a Domain Aggregate Function in this century. They used
to be SLOW, or at least that is my recollection and certainly the
reason, good or bad, that I abandoned them; but I believe that has
changed and that they are quite satisfactorily speedy now?


Well i'd love to hear from people about this because they are so
handy, not least of all in reports where I can use them to count
totals and use them with immediate IF statements to check for nulls
etc.


The magazine Total Access/VB/SQL Server (name probably not exact) once did tests
comparing all of the "usual" lookup methods and found that DLookup() was only
bested by "Seek" in any significant amount and since Seek is only useful against
local tables that pretty much makes the Domain functions perfectly legitimate
tools to use "as appropriate".

My understanding is that the downside of the domain aggregates is that they
instantiate a database collection in the same manner as...

Dim db as Database
Set db = CurrentDB

The above creates a copy of the current database *and* a refresh of all its
collections. It is this refresh which imposes an overhead "penalty" as compared
to...

Dim db as Database
Set db = DBEngine(0)(0)

....which does not refresh the collections.

So, while DBEngine(0)(0) is reported to be "thousands of times faster" most
developers acknowledge that this difference is only going to matter in a loop or
other usage which would cause the action to be repeated many times in a short
interval. So except in cases where this usage is expected, most just go ahead
and use CurrentDB.

The same holds true for the domain aggregate functions. If you use one in a
query that will process many rows or in a code looping operation the performance
is likely to be poor and a custom replacement can do better. However if the
custom function replacement uses CurrentDB you are simply replacing a poor
choice with an equally poor choice as you introduce the same overhead problems
that the domain function has.

It is also a widely held belief that the domain functions do not utilize
indexes. This is also false and easily disproved by simple testing. It is my
belief that in the early days of Access people saw bad performance from the
domain functions when they were used in queries and from this they earned the
reputation of being "poor performers" all around.

Some people simply prefer to use...

Dim val as Variant
Dim db As Database
Dim rs as Recordset
Set db = CurrentDB (or DBEngine(0)(0))
Set rs = db.OpenRecordSet("SomeQuery")
val = rs!SomeField

....instead of...

Dim val as Variant
val = Dlookup("SomeField", "SomeDomain")

....because they feel like they have more control and in many cases it offers
more flexibility, but unless one uses DBEngine(0)(0) there is no reason to
believe that the RecordSet method will be any faster or more efficient.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


Nov 13 '05 #5
Lyle Fairfield <ly******@yahoo.ca> wrote in
news:%o********************@read2.cgocable.net:
Deano wrote:

I've not much experience in this even though i've read the
correct websites that have been listed here many times, down
to tips about not using domain aggregrate functions to
improve performance (admittedly that confuses me as I don't
see how I could get by without them, but I digress).


I haven't used a Domain Aggregate Function in this century.
They used to be SLOW, or at least that is my recollection and
certainly the reason, good or bad, that I abandoned them; but
I believe that has changed and that they are quite
satisfactorily speedy now?


Domain aggregate functions are not inherently slow, but use one to
calculate a starting balance for a record in a query with 100 000
records and the 100 000 calls to the function will definitely slow
down query execution, if you catch my drift.

--
Bob Quintal

PA is y I've altered my email address.
Nov 13 '05 #6
DFS
Lyle Fairfield wrote:
Deano wrote:

I've not much experience in this even though i've read the correct
websites that have been listed here many times, down to tips about
not using domain aggregrate functions to improve performance
(admittedly that confuses me as I don't see how I could get by
without them, but I digress).


I haven't used a Domain Aggregate Function in this century. They used
to be SLOW, or at least that is my recollection and certainly the
reason, good or bad, that I abandoned them; but I believe that has
changed and that they are quite satisfactorily speedy now?


They're very, very fast nowadays.

I just released a system that uses them on linked Oracle tables, accessed
across a VPN. The function uses DCounts() to confirm records received =
records transmitted. And they work well. For instance, an operation like
DCount("SurveyID","Responses","SurveyID = 123")) takes < 1 second to poll a
700,000 row Oracle table, across the hi-speed VPN connection.

They're still slightly slower than recordsets, though.
Nov 13 '05 #7
"Bob Quintal" <rq******@sPAmpatico.ca> wrote in message
news:1110042441.8c0b32ba64a00d913c0793f9d0e30447@t eranews...
Domain aggregate functions are not inherently slow, but use one to
calculate a starting balance for a record in a query with 100 000
records and the 100 000 calls to the function will definitely slow
down query execution, if you catch my drift.


Yes, I have to agree with the above. It is not that they are slow, but users
abuse them! .....

For example, you don't want to use 5 lookups to grab 5 field values based on
a key value. You would either use a recrdset, and grab the ONE record, or
perhaps even better use a sql join to bring in the child record data.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #8
Albert D. Kallal wrote:
"Bob Quintal" <rq******@sPAmpatico.ca> wrote in message
news:1110042441.8c0b32ba64a00d913c0793f9d0e30447@t eranews...
Domain aggregate functions are not inherently slow, but use one to
calculate a starting balance for a record in a query with 100 000
records and the 100 000 calls to the function will definitely slow
down query execution, if you catch my drift.


Yes, I have to agree with the above. It is not that they are slow,
but users abuse them! .....

For example, you don't want to use 5 lookups to grab 5 field values
based on a key value. You would either use a recrdset, and grab the
ONE record, or perhaps even better use a sql join to bring in the
child record data.


Interesting. Thanks for all the replies so far. If anyone can answer
one of my original questions, perhaps this one it would be of great
help;
"...if I'm distributing a runtime only version and have split into
front and back-ends, how do the users (who don't have Access) control
security? I presume I have to design a form and use VBA to allow them
access to users and passwords? In this scenario I guess the workgroup
security file would be on the server with the tables?"
Nov 13 '05 #9
"Deano" <ma**********@gmail.com> wrote in message
news:xn***************@usenet.plus.net...
"...if I'm distributing a runtime only version and have split into
front and back-ends, how do the users (who don't have Access) control
security?
Yes...that is correct. However, with a good design, then likely this process
can be simplified a lot (low, medium, and super users for example).
I presume I have to design a form and use VBA to allow them
access to users and passwords?
Yes, that is generally what you do. I actually prefer this, even when NOT
using the runtime. I give some example screen shots of this idea here

http://www.members.shaw.ca/AlbertKal...erFriendly.htm

In this scenario I guess the workgroup
security file would be on the server with the tables?"


Yes, that is correct....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
http://www.members.shaw.ca/AlbertKallal
Nov 13 '05 #10
Albert D. Kallal wrote:
"Deano" <ma**********@gmail.com> wrote in message
news:xn***************@usenet.plus.net...
"...if I'm distributing a runtime only version and have split into
front and back-ends, how do the users (who don't have Access)
control security?


Yes...that is correct. However, with a good design, then likely this
process can be simplified a lot (low, medium, and super users for
example).
I presume I have to design a form and use VBA to allow them
access to users and passwords?


Yes, that is generally what you do. I actually prefer this, even when
NOT using the runtime. I give some example screen shots of this idea
here

http://www.members.shaw.ca/AlbertKal...ity/UserFriend
ly.htm

In this scenario I guess the workgroup
security file would be on the server with the tables?"


Yes, that is correct....


Thanks Albert, it's useful to have these basic questions answered.
Site's looking nice as well.
Nov 13 '05 #11

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

Similar topics

12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
0
by: frankenberry | last post by:
I have multi-page tiff files. I need to extract individual frames from the multi-page tiffs and save them as single-page tiffs. 95% of the time I receive multi-page tiffs containing 1 or more black...
6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
0
by: E Miller | last post by:
Visual Studio .NET 2002 I've got an application in which I need to be able to click on a listbox item to initiate a dialog pertaining to that item. I'd like to be able to keep the dialog...
3
by: Dave Rich | last post by:
Hi I am trying to access the listview items from a SysListView32 control in C#. I am using LVM.FINDITEM and LVFINDINFO through SendMessage to try to get the text from each column in the item (it...
8
by: Hazz | last post by:
What is the triggering action that raises the event which causes my breakpoint to be reached, repeatedly, but does not allow my form to ever remain visible. I set a breakpoint on the line...
5
by: MJB | last post by:
I never get the above exception in Windows 2k. It only happens in Windows XP, which is the first oddity. My application is multi-threaded and I use the webbrowser control and media player. The...
0
by: Greg | last post by:
I've made a datagrid multiline (for anyone interested, I used an adaptation of the code at http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp). This has introduced a very serious issue: the vertical...
0
by: Sabri.Pllana | last post by:
We apologize if you receive multiple copies of this call for papers. *********************************************************************** 2008 International Workshop on Multi-Core Computing...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
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: 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
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...
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...
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
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...

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.