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

Multi-User QueryDef?

I'm putting together a form meant purely to lookup values in a
consolidated Access db. I've got most everything working with one
small hitch - how to make the VB-generated SQL query multi-user
friendly without blowing the size of the db through the stratosphere?
I started out using a set named Query to test the options of the form
"SearchQueryResults", but with the possibility of two users running a
search at once (or even one still having it open while the script
tries to redefine it), I can't keep doing that. I've seen a few
examples around that use CurrentDb.CreateQueryDef(""), but when I try
using that method, I can't open it. I am currently using
DoCmd.OpenQuery, as CurrentDb.CreateQueryDef("").OpenRecordSet doesn't
seem to be working. I don't want to define a serialized query
everytime, as it creates more hassle for cleanup and possible issues
with needing to compact more often. If it helps in methods at all,
we're expecting no more than 25 concurrent users. Any help would be
greatly appreciated.

Mar 6 '07 #1
1 1999
There are a couple of several issues contributing to your problem.

1. Split the database.
Any multi-user database should be split.
If that's a new concept, see:
http://allenbrowne.com/ser-01.html
Once split, the querydefs (which are in the front end) do not interfere with
each other.

2. Use forms for interfaces
Don't open queries directly. Use forms - in Database view if you want that
appearance.

If you display the search results in a form, you can assign the SQL
statement to the RecordSource property of the form. You don't need a saved
query, and there is no bloating.

In fact, you may be able to just set the Filter of the form if you prefer.
For a downloadable example of how to build this dynamically, see:
Search form - Handle many optional criteria
at:
http://allenbrowne.com/ser-62.html

--
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.

"Jaazaniah" <Ja****@gmail.comwrote in message
news:11*********************@p10g2000cwp.googlegro ups.com...
I'm putting together a form meant purely to lookup values in a
consolidated Access db. I've got most everything working with one
small hitch - how to make the VB-generated SQL query multi-user
friendly without blowing the size of the db through the stratosphere?
I started out using a set named Query to test the options of the form
"SearchQueryResults", but with the possibility of two users running a
search at once (or even one still having it open while the script
tries to redefine it), I can't keep doing that. I've seen a few
examples around that use CurrentDb.CreateQueryDef(""), but when I try
using that method, I can't open it. I am currently using
DoCmd.OpenQuery, as CurrentDb.CreateQueryDef("").OpenRecordSet doesn't
seem to be working. I don't want to define a serialized query
everytime, as it creates more hassle for cleanup and possible issues
with needing to compact more often. If it helps in methods at all,
we're expecting no more than 25 concurrent users. Any help would be
greatly appreciated.
Mar 6 '07 #2

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

Similar topics

37
by: ajikoe | last post by:
Hello, Is anyone has experiance in running python code to run multi thread parallel in multi processor. Is it possible ? Can python manage which cpu shoud do every thread? Sincerely Yours,...
4
by: Frank Jona | last post by:
Intellisense with C# and a multi-file assembly is not working. With VB.NET it is working. Is there a fix availible? We're using VisualStudio 2003 Regards Frank
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)?
6
by: Joe | last post by:
I have 2 multi-list boxes, 1 displays course categories based on a table called CATEGORIES. This table has 2 fields CATEGORY_ID, CATEGORY_NAME The other multi-list box displays courses based on...
4
by: mimmo | last post by:
Hi! I should convert the accented letters of a string in the correspondent letters not accented. But when I compile with -Wall it give me: warning: multi-character character constant Do the...
5
by: Shane Story | last post by:
I can seem to get the dimensions of a frame in a multiframe tiff. After selecting activeframe, the Width/Height is still really much larger than the page's actual dimensions. When I split a...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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:
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,...

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.