Previous in Forum: Changing MP4 Format   Next in Forum: EtherCAT Communication
Close
Close
Close
10 comments
Rate Comments: Nested
Active Contributor

Join Date: Oct 2007
Posts: 24
Good Answers: 1

Microsoft Access

12/13/2007 8:50 AM

Does anyone know how to "freeze" a Report in Access? I need to have a pricing table for items that changes with time, but I need to create reports from the query that references that table that are "frozen in time" - that once created, don't change as prices change for new events. Only way I have found is to create the report, using the query to set the date/time, then print the report and use the printed version only, or send each report to Excel as a new file each time. Suggestions?

Register to Reply
Pathfinder Tags: Access - Excel
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Power-User

Join Date: Aug 2007
Location: Bridgeport, New Jersey, USA
Posts: 109
Good Answers: 6
#1

Re: Microsoft Access

12/13/2007 9:24 AM

If you can spare the space, use a MAKE-TABLE query to get the price snapshot into a separate table - then use it for your query/report. You could then, if I understand the question, do a 'snapshot' of your prices table every two weeks or so, building a table each time, so you can go back and run your query/report at any time, looking at any snapshot, simply by changing the record source name for the query.

__________________
"For a successful technology, reality must take precedence over public relations, for Nature can not be fooled." - Richard Feynman
Register to Reply
Anonymous Poster
#2

Re: Microsoft Access

12/14/2007 12:25 PM

When you have your Database click on the colume header a drop down menu will show up and then just click on freeze colume

you do not have to create a new table each time you do a freeze.

Register to Reply
Power-User

Join Date: Aug 2007
Location: Bridgeport, New Jersey, USA
Posts: 109
Good Answers: 6
#3
In reply to #2

Re: Microsoft Access

12/14/2007 1:17 PM

I got the impression the OP was talking about freezing DATA at various points in time, so after price changes, he could still go back and see what the value was 2 weeks ago or a month ago or a year ago ;

Your technique is good for "freezing" columns in the grid display on screen.

I suppose either of us could be right..

__________________
"For a successful technology, reality must take precedence over public relations, for Nature can not be fooled." - Richard Feynman
Register to Reply
Active Contributor

Join Date: Oct 2007
Posts: 24
Good Answers: 1
#4

Re: Microsoft Access

12/14/2007 2:48 PM

The column locks are intended to prevent more than one user updating info at the same time (as I understand it) - my goal is to create a report of scrap dollars on a family of parts from month to month, but as the base price table changes, previously created reports do not change, but maintain the price that was in the query at the time the report was created. Like I said, the only way I have found that works (without having tremendously duplicated files each month) is to work only from the printed report, or to export to Excel & functionally create a new report. Neither of which satisfies me - so I am asking CR4 experts.

Register to Reply
Power-User

Join Date: Aug 2007
Location: Bridgeport, New Jersey, USA
Posts: 109
Good Answers: 6
#5
In reply to #4

Re: Microsoft Access

12/14/2007 3:57 PM

//
but as the base price table changes, previously created reports do not change, but maintain the price that was in the query at the time the report was created.
//

You've almost lost me here. You have a table with parts, and prices. You run a report. Two weeks later, the price for Part #1 changes. You run the report again, and you get the "current" price for Part #1. But you want to see the price as it was two weeks ago?

I'm kinda lost here now - if you want to maintain a history of price changes, you either need to do a 'snapshot' extract as I suggested, or create a transaction table that contains the part #, the date, and the price on that date - so you can then go back and say either, "what were all the prices on or before Dec. 1st", or "What have the price points been for Part #1 since Sept 1".

If I'm totally lost here, please clarify.

__________________
"For a successful technology, reality must take precedence over public relations, for Nature can not be fooled." - Richard Feynman
Register to Reply
Guru

Join Date: Jul 2006
Location: Eastern Kansas USA
Posts: 1503
Good Answers: 128
#6

Re: Microsoft Access

12/14/2007 11:41 PM

Majordud,

I know that Excel has a "paste special" function built-in. With it you can copy and then paste the copied cells as data only instead of pasting them as a reference to another cell and its formulae. I don't have the experience to know if Access has a similar feature. If it does, this should solve your problem. You could automate this process by creating a macro which stores all your keystrokes and mouse actions as you do this, and then simply invoke the macro whenever you wish to do it again.

--JMM

Register to Reply
Power-User

Join Date: Aug 2007
Location: Bridgeport, New Jersey, USA
Posts: 109
Good Answers: 6
#8
In reply to #6

Re: Microsoft Access

12/17/2007 9:16 AM

One short Access make-table query can do this in about 4 seconds - the query can construct a table whose name is tied to the date being 'snapshotted' - thus, the same query can be used over and over and over to create weekly or bi-monthly or for that matter, hourly snapshots - the benefit to creating snapshot tables is that after the fact, if you want to look at the data, it's there - with a PDF or report, if the information you want is not in front of you, you're kinda stiffed.

In these days of ridiculously cheap magnetic storage, it's far cheaper to create data tables than spend hours of person-labor screwing around with other alternatives.

However, since our OP has not chimed in with any additional details, I have a feeling we're just peein' in the ocean here..

__________________
"For a successful technology, reality must take precedence over public relations, for Nature can not be fooled." - Richard Feynman
Register to Reply
Active Contributor

Join Date: Dec 2006
Location: Dublin & Santa Fe
Posts: 10
#7

Re: Microsoft Access

12/15/2007 5:14 PM

Another option would be to print the report to a pdf, using adobe or a free pdf producer (such as CutePDF) and then save it on a server by date or other identifying name. Then people could access the report to their heart's content. We use this method with our MySQL and PHP/HTML reports.

__________________
jadien
Register to Reply
Anonymous Poster
#9

Re: Microsoft Access

12/17/2007 9:30 AM

The comment by JaDieN seems to be the most likely approach. I can save the report literally as it existed at time of creation - I just wish there was a more direct approach available in Access.

Register to Reply
Power-User

Join Date: Aug 2007
Location: Bridgeport, New Jersey, USA
Posts: 109
Good Answers: 6
#10
In reply to #9

Re: Microsoft Access

12/17/2007 9:40 AM

>>I just wish there was a more direct approach available in Access.<<

There is. I just told you what it was. Trust me. If you save ONLY a printed report, I can guarantee you that 6 months down the line, someone is gonna look at the report and want more detail - but you won't have it because all you did was CutePDF a report.

Save the data. With hardly any work at all, you can have a query that writes a snapshot dataset, and another query/report pair that can point to any one of your saved datasets to re-run the 'report' at any time. And then when the boss comes to you and says, "I want to see more about this damn part number from last October", you can just whip out the October snapshot dataset and tickle his fancy any way he wants.

__________________
"For a successful technology, reality must take precedence over public relations, for Nature can not be fooled." - Richard Feynman
Register to Reply
Register to Reply 10 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (2); JaDieN (1); Jim at GodwinPumps (5); jmueller (1); majordud (1)

Previous in Forum: Changing MP4 Format   Next in Forum: EtherCAT Communication

Advertisement