473,772 Members | 3,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1655
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.OpenRecordSe t("SomeQuery" )
val = rs!SomeField

....instead of...

Dim val as Variant
val = Dlookup("SomeFi eld", "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******** ************@re ad2.cgocable.ne t:
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("SurveyI D","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******@sPAmp atico.ca> wrote in message
news:1110042441 .8c0b32ba64a00d 913c0793f9d0e30 447@teranews...
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******@sPAmp atico.ca> wrote in message
news:1110042441 .8c0b32ba64a00d 913c0793f9d0e30 447@teranews...
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**********@g mail.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

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

Similar topics

12
3879
by: * ProteanThread * | last post by:
but depends upon the clique: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=954drf%24oca%241%40agate.berkeley.edu&rnum=2&prev=/groups%3Fq%3D%2522cross%2Bposting%2Bversus%2Bmulti%2Bposting%2522%26ie%3DUTF-8%26oe%3DUTF-8%26hl%3Den ...
0
3787
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 and white CCITT4 compressed files (frames) inside the tiff. Every now and then I receive a mixture of black and white CCITT4 and JPEG compressed files, and sometimes just multi-page tiffs with JPEG only. The code runs great when dealing with the...
6
8181
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
1366
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 multi-select, but the way the listbox seems to be set up in C#, the SelectedItem member is just the first item in the collection of all selected items, and it may not be the
3
17060
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 is a multi-column list view). I am using the PARTIAL flag to try to find an item starting with a certain letter, that i am setting on the LVFINDINFO.psz. I am always being returned -1 (or 0) as the index and am not quite sure what i am
8
2026
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 Graphics.. below. Just curious to help my 'system level' understanding. thx. -hazz private void InitializeComponent() { this.Paint += new System.Windows.Forms.PaintEventHandler(this.Wassup_widdis_Paint); } static void Main() {
5
1344
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 exception normally occurs when I open the browser control or media control, but sometimes it just occurs randomly. I was thinking first that it was some sort of build difference with the COM interop components, but I re-referenced and rebuilt...
0
1523
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 scroll bar assumes that all row heights are the same, as the designers of the datagrid seemed to not want to cater for the fact that a datagrid could be made multi line. This results in the scroll down functionality being completely wrong -
0
2328
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 Systems (MuCoCoS'08) Barcelona, Spain, March 4 - 7, 2008; in conjunction with CISIS'08. <http://www.par.univie.ac.at/~pllana/mucocos08> *********************************************************************** Context
1
9317
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 "PAR.UniqueID" could not be bound. The multi-part identifier "PAR.PAR_Status" could not be bound. The multi-part identifier "Salary.New_Salary" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
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...
1
10038
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9912
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
8934
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...
0
6715
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
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.