christheancient
Registered User.
- Local time
- Today, 17:16
- Joined
- Dec 28, 2002
- Messages
- 41
With a lot of help from people on this site who know a darned sight more than I do, I am trying to build a customer database. I have been given a lot of help to date when I got stuck. And I've been extremely grateful!
A lot of my forms and reports etc work well in isolation, but I am well and truly stuck on what (I hope) is the final hurdle.
The aim is to produce a payments received report based on data between two given dates.
These dates are chosen using a neat calendar-driven form (thanks to the guys who helped there) and stored in a table.
A report on the payments is made using a query that gets the payments between the two dates.
What I want to do is...
From the switchboard, the user selects that a report is needed. The form 'pops up' to get the required between dates. The dates are loaded into the table (no problems there). Next, the query runs in the background (ideally) to work out all the payments received between the two dates. And finally, the report pops on the screen in preview mode.
Using macros, I can, of course, make the calendar form open up and I can make the report open up, but I can't run the query in between. Also, the report has never waited until the calendar form worked.
So - bottom line now - is there a way I can, from the switchboard:
1. Open the calendar form and allow the underlying table to action the new dates. Then...
2. Run the query (invisibly) so that the data is ready for the next stage...
3. Open the report in print preview, ready to print, with all the most up-to-date info in it.
I have tried (extremely unsuccessfully) to crack this and I am about ready to go back to a much simpler (but not as snazzy) way that I used to do it. But I'd like to make people think I'm an ace developer!
Or am I just trying to be too clever for my own good?
TIA
Chris
A lot of my forms and reports etc work well in isolation, but I am well and truly stuck on what (I hope) is the final hurdle.
The aim is to produce a payments received report based on data between two given dates.
These dates are chosen using a neat calendar-driven form (thanks to the guys who helped there) and stored in a table.
A report on the payments is made using a query that gets the payments between the two dates.
What I want to do is...
From the switchboard, the user selects that a report is needed. The form 'pops up' to get the required between dates. The dates are loaded into the table (no problems there). Next, the query runs in the background (ideally) to work out all the payments received between the two dates. And finally, the report pops on the screen in preview mode.
Using macros, I can, of course, make the calendar form open up and I can make the report open up, but I can't run the query in between. Also, the report has never waited until the calendar form worked.
So - bottom line now - is there a way I can, from the switchboard:
1. Open the calendar form and allow the underlying table to action the new dates. Then...
2. Run the query (invisibly) so that the data is ready for the next stage...
3. Open the report in print preview, ready to print, with all the most up-to-date info in it.
I have tried (extremely unsuccessfully) to crack this and I am about ready to go back to a much simpler (but not as snazzy) way that I used to do it. But I'd like to make people think I'm an ace developer!
Or am I just trying to be too clever for my own good?
TIA
Chris