PC Review


Reply
Thread Tools Rate Thread

2003: Unique ID For Report?

 
 
(PeteCresswell)
Guest
Posts: n/a
 
      21st Jul 2010
I've got a report for which the user can supply free-form
comments.

Comments tb saved for the next time the report is run.

Comments can be Added/Changed/Deleted.

To me, that's a hidden table "zstblReportComment".

But how to key it to different (in the events that other reports
crop up with the same requirement) reports?

I guess Report.Name is the fallback position - and I guess the
likelihood of somebody renaming a report later is low....

But I'd really rather have something like a ReportID that is
unique to/embedded in the report.

I there anything "under the table" yet not *too* arcane that I
could use?
--
PeteCresswell
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      21st Jul 2010
If you don't mind using the undocumented MSysObjects table, the ID field
appears to be constant.

You might want to read MichKa's comments about the advisability of basing
things on the system tables
http://www.trigeminal.com/usenet/usenet017.asp

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"(PeteCresswell)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've got a report for which the user can supply free-form
> comments.
>
> Comments tb saved for the next time the report is run.
>
> Comments can be Added/Changed/Deleted.
>
> To me, that's a hidden table "zstblReportComment".
>
> But how to key it to different (in the events that other reports
> crop up with the same requirement) reports?
>
> I guess Report.Name is the fallback position - and I guess the
> likelihood of somebody renaming a report later is low....
>
> But I'd really rather have something like a ReportID that is
> unique to/embedded in the report.
>
> I there anything "under the table" yet not *too* arcane that I
> could use?
> --
> PeteCresswell



 
Reply With Quote
 
a a r o n . k e m p f @ g m a i l . c o m
Guest
Posts: n/a
 
      28th Jul 2010
I store all my reports in a eReport table.. and I assign it a
eReportID. When someone brings me a report, I have to look it up in
the table (before I can work on it).

I just don't think that basing anything on the actual report name is
advisable.. because it's prone to change over time (and you don't want
to have to rename your database objects)

I store the reportName and the reportTitle and the reportFooter in a
single table.. and it's easy to update those in one place.

Thanks

-Aaron



On Jul 21, 10:41*am, "(PeteCresswell)" <x...@y.Invalid> wrote:
> I've got a report for which the user can supply free-form
> comments.
>
> Comments tb saved for the next time the report is run.
>
> Comments can be Added/Changed/Deleted.
>
> To me, that's a hidden table "zstblReportComment".
>
> But how to key it to different (in the events that other reports
> crop up with the same requirement) reports?
>
> I guess Report.Name is the fallback position - and I guess the
> likelihood of somebody renaming a report later is low....
>
> But I'd really rather have something like a ReportID that is
> unique to/embedded in the report.
>
> I there anything "under the table" yet not *too* arcane that I
> could use?
> --
> PeteCresswell


 
Reply With Quote
 
(PeteCresswell)
Guest
Posts: n/a
 
      28th Jul 2010
Per a a r o n . k e m p f @ g m a i l . c o m:
>I just don't think that basing anything on the actual report name is
>advisable.. because it's prone to change over time (and you don't want
>to have to rename your database objects)


That was my feeling too.

What I went with was the ID number in the MSysObjects table.

That way somebody later on could (about a .001 percent
chance...but still...) change the name of the report and not
break my little scheme.
--
PeteCresswell
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unique report ID injanib via AccessMonster.com Microsoft Access 10 7th Aug 2007 03:24 AM
Unique report header =?Utf-8?B?SmFtZXMgTw==?= Microsoft Access Reports 2 16th Nov 2006 06:55 PM
Unique Name for Emailed report =?Utf-8?B?SGFwcHlCbHVl?= Microsoft Access Reports 2 23rd Jun 2005 11:35 PM
Unique report name Sammie Microsoft Access Reports 1 28th Mar 2005 06:38 PM
Re: Send report to Unique RTF Version: 2003 (11.0) John Nurick Microsoft Access VBA Modules 0 20th Aug 2004 07:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:00 PM.