j.smith1981
Jez
- Local time
- Today, 22:24
- Joined
- Dec 10, 2009
- Messages
- 35
Ok I have a real problem here.
I have a parent combo box named 'cmb_cartridge_manufacturer' yea? (as its reffered to on the access 2007 form)
I also have a child one thats called 'cmb_cartridge_select', when the user selects a manufacturer it limits the number of cartridges in the child combo box yea?
Like so (in the SQL):
Ok?
The problem is, when I shift through records on the form, the form looses the 2 field values.
Is there anyway of making Access get those values back?
Its just I cant have the manufacturer table existing as a foreign key on the data table, because the manufacturer id is on the cartridges table as a foreign key as it where.
Like so (may explain it further):
manufacturers:
id
manufacturer_name
cartridges (explained above yea?)
id
manufacturer_id (the primary key from manufacturers table)
name
I should be able to make it look this value up, just cant figure out how, like get the cartridge code back on the form, then get it to look up the manufactuers id for that cartridge code, are you with me?
I just cant get this to work and its really beginning to bug me.
Can someone help me with this please?
Thanks,
Jeremy.
I have a parent combo box named 'cmb_cartridge_manufacturer' yea? (as its reffered to on the access 2007 form)
I also have a child one thats called 'cmb_cartridge_select', when the user selects a manufacturer it limits the number of cartridges in the child combo box yea?
Like so (in the SQL):
PHP:
SELECT [cartridge Query].cartridge.id, [cartridge Query].cartridge_code, [cartridge Query].manufacturer, [cartridge Query].Manufacturer.id
FROM [cartridge Query]
WHERE ((([cartridge Query].Manufacturer.id)=[Forms]![data_form]![select_cart_man]))
ORDER BY [cartridge Query].manufacturer, [cartridge Query].Cartridge_Code;
Ok?
The problem is, when I shift through records on the form, the form looses the 2 field values.
Is there anyway of making Access get those values back?
Its just I cant have the manufacturer table existing as a foreign key on the data table, because the manufacturer id is on the cartridges table as a foreign key as it where.
Like so (may explain it further):
manufacturers:
id
manufacturer_name
cartridges (explained above yea?)
id
manufacturer_id (the primary key from manufacturers table)
name
I should be able to make it look this value up, just cant figure out how, like get the cartridge code back on the form, then get it to look up the manufactuers id for that cartridge code, are you with me?
I just cant get this to work and its really beginning to bug me.
Can someone help me with this please?

Thanks,
Jeremy.