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

Running a report from an external database

I am somewhat new to Access and especially to forms and code.

I have a form in each of 5 databases that allows the user to enter the
date and then automatically run all the reports for that date. The
user chooses daily, weeekly, or quarterly. This all works fine. The
reports are presented in Print Preview mode so they can quickly review
and then snap and email.

I don't want to import all the objects, as then the objects (queries
and reports) will be in two places making maintenance tricky at best.

Now the users asked if I could make it so they go into the Sales
Database (the largest by far) and click "Run Daily Reports" and have
that click run the daily reports from the other 4 databases as well.

I've tried OpenDatabase, I've tried the code from google and the
knowledge base and I keep getting errors - nothing is working. I can
see the knowledgebase code is really old. KB article Q210132 is from
2002. I tried it and got "Statement invalid outside Type Block" on my
compile. I tried other variations and still get Type Block error on
compile.

This seems simple, but isn't working for me.

Saledate is in the query; getSaleDate is the date on the form to use in
the query/report.

OpenDatabase("C:\B19 Database Work\Hourly Data\HourlyData test.mdb") As
Database
DoCmd.OpenReport "R: Daily Report Customer Sales Analysis", [Saledate]
= Me.getSaleDate

Thanks -
sara

Nov 13 '05 #1
0 1274

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

Similar topics

4
by: Bill Dika | last post by:
Hi I am trying to calculate a running total of a calculated textbox (tbAtStandard) in GroupFooter1 for placement in a textbox (tbTotalAtStandard) on my report in Groupfooter0. The problem...
2
by: Yisroel Markov | last post by:
Greetings, two of my users have the same front end db (A2K). Each of them has created, in addition to the standard reports, a personal customized report. Now they both want to be able to run...
0
by: saraqpost | last post by:
I am somewhat new to Access and especially to forms and code. I have a form in each of 5 databases that allows the user to enter the date and then automatically run all the reports for that date....
6
by: Charles Law | last post by:
Suppose my application is running on a client machine, and they report an intermittent problem. It only occurs after the program has been running for a while, and then occasionally fails to perform...
1
by: Brad | last post by:
Thanks for taking the time to read my question. I have a table of data that has Date, Data and Category. I need to show, in a report, each Categories Data by Date. The Date has to be it's own...
6
by: IsdWeb | last post by:
Is it possible to export an Access report from one DB and import it into another?
0
by: ranesmitas | last post by:
hi , i using vb and backend access and external seagate crystal report i create report having folling code Public strReportPath As String Public strRecordSelection As String Dim crystal As New...
6
by: alphaomega3 | last post by:
I'm back with a new set of problems with the old NCR database from a year ago. I have a form that is for Nonconformance Entry. In the process of entering this form if the supplier for the...
0
by: newkhan | last post by:
Hello, Here is a problem with rdlc report in .net 2005 with c#. I have made a rdlc report and bind it with data source with contains image also and its showing well. But my requirement is...
1
by: mfaisalwarraich | last post by:
Hi Everybody, I have an external database called Patients.mdb where i made a query called qryAdmissionDetails. now i want to run this query on a report of another database called...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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.