Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help a new goldmine user thrown into the admin role.

Status
Not open for further replies.

MuttzNuttz

IS-IT--Management
Jan 22, 2004
3
GB
I need to automatically populate a field called Uour_ref: with a 5 digit number sequentailly increasing by 1 each time a "New" contact or "New" company & contact is added to goldmine by the users.
EG:
new contact added> our ref 00500
new contact added> our ref 00501
New company & contact added> our ref 00502

We are using Goldmine 6.5 SQL Version. what would be the best practice on this & How is it best to accomplish?

Automatic proceedure, trigger lookup.ini ?

what settings would be required on the field to allow this and not allo users to change the auto generated number ?


Many thanks for any help on this in advance

Brian
 
I personally like to use an Access link table or use SQL directly to accomplish things like this.

I hate goldmine but somehow got lumbered administrating it about a year ago and every time I use a look up ini or any goldmine utility I break it.... oops!

Anyhow, good luck.

Iain
 
I have been looking around & figured out how to stop any alterations to the field by setting Public read access and master write access so you can disregard that area thanks.

I am no programmer so any help on the other section would still be appreciated.

If I don`t learn to do it here, Who else is going to?
 
you want to look up the counter function in the Frontrange knowledgebase. support.frontrange.com


Doug Castell
Computer Control Corp
(310)396-6811
 
I have resolved this using lookup.ini as follows

[AUTOUPDATE]
NewRecord=Uour_ref

[Uour_ref]
Otherwise = &padl(ltrim(str(counter([AcctNo],1,000))), 5, [0])
Overwrite=1

Thanks to all responders.

If I don`t learn to do it here in this Lifetime, Where else would I go and what would I do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top