Re: serial numbers
- From: Chris Brown <cbrown@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 09:38:59 +0930
Kiel Industries (Morwell) wrote:
How to go about this:
Have 6 items, call them item A, B, C etc.
I want to put these items in a drop-down (box) field were users select the item on input, say item "A" needs to be added to the database. But I also need to have item 'A' linked to a serial number field.
Sofar so good, the thing I would like to do now is, that when the user selects item 'B' or 'C' I need it to pick up a different serial number.
Item 'A' = serial number A100, A101 etc.
Item 'B' = serial number B40, B41 etc.
The other thing also is that on creation of a new record these serial number values do not increase automatically but only for the value linked to the Item selection.
Hope someone can give me some info or sample on how to go about this and hope explanation is not all that confusing.
Thanks in advance,
Paul
I assume you have two tables, one for selected/added to order... items, and one for unique items
Your Item dropbox field: select the (text) item, use a second field Item_SN to lookup the item serial number from the table containing the unique items. This way the SN is 'hard' coded into the record. The relationship for this lookup will be itemname::itemname
2 tables right?
regards
Chris Brown
University of Adelaide
.
- References:
- serial numbers
- From: Kiel Industries \(Morwell\)
- serial numbers
- Prev by Date: Re: database designer wanted
- Next by Date: Re: Not getting what I want from a find in a portal
- Previous by thread: Re: serial numbers
- Next by thread: Re: serial numbers
- Index(es):
Relevant Pages
|
|