Outlook 2003 custom form item reference number

  • Thread starter Thread starter Colin McGerty
  • Start date Start date
C

Colin McGerty

Hi,

I'm in the process of writing an issue tracking form for Outlook 2003
for use by our software team and I was wondering if you could give me
some pointers on programmatically creating an item reference number?

I just want to have a nice simple field like "BUG00001177" (or
something) and increment the last used one for each new item.

Any help you could give would be very much appreciated.

Thanks

Colin McGerty
Systems Administrator
Axiom International
 
I usually use either CDO 1.21 or Redemption (www.dimastr.com/redemption) to
create a hidden item in the folder of interest and then I create a property
in that hidden item that is a Long. I then increment the Long each time a
new item is added to that folder by handling the ItemAdd event on that
folder's Items collection.

You can also make the property a String property in which case you can use
any formatting you want.

An alternative would be to use something like an Access database for storing
the reference sequence. You can also use something like a Post form with the
reference stored in a property like BillingInformation or Mileage, but
something like that is visible and if they can see it users would mess with
it.

For information on using Redemption code see the samples on that Web site.
For CDO 1.21 information and samples see www.cdolive.com. For using Access
or a database see
http://www.outlookexchange.com/articles/home/outlookcodeexample.asp#22

Please post your questions via the newsgroups and not by private emails.
 
Back
Top