A
Angi
I'll try not to make this too long! For this forms sake I'm dealing
with 5 tables (listed below). I've looked at the Nwind and a whole
bunch of others, but mine doesn't work the way those do, so I'm
confused.
I'm trying to create an order details subform for my main quote form.
I can handle that part. Products are created from class, subclass, and
size. Rather than select an item (ProductID & Item number), the users
want to CREATE them using cbo bxs for class, subclass, and size (which
is what creates the item number). I realize I'm going to have to do a
dlookup or something to see if the item is already there and if so,
then pull the other information. If not, add it as a new product. My
problem is getting around the productID since that is the relationship
connection (1 to many). My cbo bxs are supposed to requery the next to
find subclasses within that class and that's not working (it does on
another form based solely on the Products table, so I know it's right.)
What is the best way to do what I need to do?
Thanks to anyone who can understand this and offer some insight!
Order details:
OrderDetailID (pk)
ProductID
Qty
ExtPrice
Discount
Products table:
ProductID (pk)
ClassID
SubclassID
SizeID
ProductName (concatenation of classdesc and subdesc)
UnitPrice
ItemNo (concatenation of class, sub, and size)
Class table:
ClassID (pk)
ClassName
ClassDesc
Subclass table:
SubclassID (pk)
ClassID
SubclassName
SubDesc
Size table:
SizeID (pk)
SubclassID
txtWidth
txtHeight
txtDepth
txtSize (concatenation of all dimensions)
with 5 tables (listed below). I've looked at the Nwind and a whole
bunch of others, but mine doesn't work the way those do, so I'm
confused.
I'm trying to create an order details subform for my main quote form.
I can handle that part. Products are created from class, subclass, and
size. Rather than select an item (ProductID & Item number), the users
want to CREATE them using cbo bxs for class, subclass, and size (which
is what creates the item number). I realize I'm going to have to do a
dlookup or something to see if the item is already there and if so,
then pull the other information. If not, add it as a new product. My
problem is getting around the productID since that is the relationship
connection (1 to many). My cbo bxs are supposed to requery the next to
find subclasses within that class and that's not working (it does on
another form based solely on the Products table, so I know it's right.)
What is the best way to do what I need to do?
Thanks to anyone who can understand this and offer some insight!
Order details:
OrderDetailID (pk)
ProductID
Qty
ExtPrice
Discount
Products table:
ProductID (pk)
ClassID
SubclassID
SizeID
ProductName (concatenation of classdesc and subdesc)
UnitPrice
ItemNo (concatenation of class, sub, and size)
Class table:
ClassID (pk)
ClassName
ClassDesc
Subclass table:
SubclassID (pk)
ClassID
SubclassName
SubDesc
Size table:
SizeID (pk)
SubclassID
txtWidth
txtHeight
txtDepth
txtSize (concatenation of all dimensions)