Y
Ytzchak Buyanovsky
Guest
Hi everybody!
The question is:
I have two tables:
Family Table:
Fields:FamilyID (Number)
FamilyName (Text)
Product Table:
Fields
roductID (AutoNumber)
FamilyID (Number)
PartNumber (Text)
This last field is composed by:
3first digits corresponding to the family, 4 digits and 2 letters.
Example:345 0001 AA
In a form "FormName" I want to pick a family from a combo box and run a procedure for adding a new PartNumber on Products table.
I think part of the process is:
SELECT (MAX(PartNumber)+1) FROM Products WHERE FamilyID=Me![FormName].[FamilyID]
THis is correct?
Can anybody help to me?
Thanks.
[This message has been edited by Ytzchak Buyanovsky (edited 08-05-2001).]
The question is:
I have two tables:
Family Table:
Fields:FamilyID (Number)
FamilyName (Text)
Product Table:
Fields

FamilyID (Number)
PartNumber (Text)
This last field is composed by:
3first digits corresponding to the family, 4 digits and 2 letters.
Example:345 0001 AA
In a form "FormName" I want to pick a family from a combo box and run a procedure for adding a new PartNumber on Products table.
I think part of the process is:
SELECT (MAX(PartNumber)+1) FROM Products WHERE FamilyID=Me![FormName].[FamilyID]
THis is correct?
Can anybody help to me?
Thanks.
[This message has been edited by Ytzchak Buyanovsky (edited 08-05-2001).]