473,396 Members | 1,965 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.

Multi User Environment MsAcces Reports

Hi,

My Development is in almost final stages, now i am facing problem with the reports.

I am generating MsAccess Reports based on the selected Parameters, while generating Report I am opening reports forms in desgin mode and then i am passing Parameters and Sql String to Record Source This is working ifne for single user, but if multi users generate then i am facing problem.

If i am not opening the report is desgin mode then I cannot pass the query to record source. is there any way where i can pass string to recordsource without opening in desgin mode, Or is there any better method where i can implement,

So please help me out.


Thanks & Regards
Nov 8 '06 #1
4 1833
PEB
1,418 Expert 1GB
Usually Visual Basic can do it instaed you..

In OpenForm event procedure you can set the recordsource like this:

Me.recordsource="SQL"

But maybe you are wondering about the possibility to users to open the same report?

In this case use the front end back end method of implementation...

Where your database is placed on the server

and an mde with your reports forms, specific queries and attachements to your database is located on each PC of user... So the database is accessed and no problems with personnalisation of forms and reports..

And less network traffic in fact..
Nov 8 '06 #2
wooow Thanks for the solution, one more thing I wanted to ask , is my below porblem will also solve by using mde method.

Addition to my previous message

below is my code which i am using to generate Report

DoCmd.OpenReport "AA3: Daily Dividend Detail by Account", acViewDesign, , , acHidden
Reports![AA3: Daily Dividend Detail by Account].RecordSource = StrDat1
DoCmd.Close acReport, "AA3: Daily Dividend Detail by Account", acSaveYes
DoCmd.OpenReport "AA3: Daily Dividend Detail by Account", acViewPreview

The Problem is when users are generating reports, other users are not able to login in the database, becuase while generating report i am opening in desgin mode, so I have added AcSaveYes in DoCmd.Close acreport , After Passing my recordsource I am closing the report with aacSaveYes and then i am opening in DoCmd.openReport acpreview, and then my other users also getting same result even though their parameters are different. Becuase first user is opened the Report, so second user unable to change the recordsource.

Please let me know is this is not clear.
Nov 8 '06 #3
Hi,

My problem is solved, thanks for the quick information,

I just wanted to say you are great.. thanks.... today you have saved my job.............
Nov 8 '06 #4
NeoPa
32,556 Expert Mod 16PB
I guess you've found out already, but the answer is YES.
Opening a Form or Report in design mode and making changes to the design of the object will lock the database.
If you change the SQL (or other changable properties) from the OnOpen event this doesn't cause the saved copy of the object to change so will not lock the db.
Nov 9 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Scott Bryce | last post by:
I am creating a CGI application in Perl that uses an Access database. It will be hosted on an NT server. I have used flat file DBMs (tied hashes) on UNIX servers, but I am not familiar with how...
9
by: cheryl | last post by:
I am relatively new to programming in Access for a multi user environment, and am having trouble figuring out if there is a way to accomplish one of our user requests. I am working on a multi...
5
by: premmehrotra | last post by:
I currently have a multi-user access database which is put on a shared drive L: on a Windows Servers. Entire database is one file premdb.mdb. Users access this database from their laptops....
2
by: Smriti Dev | last post by:
Hi, I wanted find out if it is possible to have many users access an access database and add records using forms. I'm worried their might be data corruption. I will have about 5 users using the...
14
by: Sonic | last post by:
I have an MDE file that is growing exponentially (from 3,900 KB to over 132,000 KB today). I am not saving data in this MDE, although I use a mix of offline and SQL tables for Read Only querying. ...
4
by: Andy_Khosravi | last post by:
I'm trying to build a search utility for users to find 'inquiries' in my database that involves several tables. This is normally easy to do with the query builder, but I have a unique situation...
3
MMcCarthy
by: MMcCarthy | last post by:
I know this question has been covered extensively in the past, but I'm wondering if anyone has any new thoughts on the subject. I have a Frontend/Backend Ms Access database. The frontend will be an...
2
by: john | last post by:
Is it true that if I split my access database in backend and frontend and I implement custom auto increment for the ID fields, that my database is ready to be used in a multi-user environment? I...
0
by: mirandacascade | last post by:
Apologies in advance for what I'm guessing may be a trivial question. Assume the following: 1) multi-user environment 2) standard (i.e. not a class module) module with: Public strSample as...
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: 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: 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
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
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,...

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.