473,320 Members | 2,189 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,320 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 1270

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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.