J
Jane Shinnie
Hi
I hope someone can help with this.
I am trying to set up a database to track our schools use of printer
cartridges. We have a variety of printers which can use just a single black
cartridge or up to 5 colour cartridges at the same time. Each cartridge has
a unique code and each printer has defined cartridges which fit it.
I have set up 5 tables
1 Cartridge Type (fields CartridgeCode (primary key) and CartridgeType
(black or colour)
2.Cartridge Code (fields CartridgeCode, (PK) CartridgeColour, Stock Level,
ReorderLevel)
3. Orders (OrderID (PK), PrinterID, CartridgeCode, UserID, DateTaken,
CartridgeType)
4. Printers (PrinterID (PK), PrinterLocation, PrinterMake, PrinterModel,
BlackCartridge, ColourCartridge1, ColourCartridge2,ColourCartridge3,
ColourCartridge4, ColourCartridge, these latter are text and contain the
cartridgecode relevant)
5. Users (UserID (PK), LastName, FirstName)
There are relationships established between PKs and foreign keys in the
tables
I want the database user to be able to select the printerID and then have
the form show only those cartridges which go with that printer. I have done
this by using the Order table as the record source of the form and putting
in a subform based on the Printers table and using comboboxes on the
mainform to select the PrinterID, the UserID and text boxes to input the
date taken. The subform shows all the cartidges which will "fit" the chosen
printer, but how can I present the form user with only the option to input
one or several of the cartridges listed on the subform? I have struggled
with this for weeks, my visual basic is not up to the task, and any help
most gratefully received!!
Thanks
Jane
I hope someone can help with this.
I am trying to set up a database to track our schools use of printer
cartridges. We have a variety of printers which can use just a single black
cartridge or up to 5 colour cartridges at the same time. Each cartridge has
a unique code and each printer has defined cartridges which fit it.
I have set up 5 tables
1 Cartridge Type (fields CartridgeCode (primary key) and CartridgeType
(black or colour)
2.Cartridge Code (fields CartridgeCode, (PK) CartridgeColour, Stock Level,
ReorderLevel)
3. Orders (OrderID (PK), PrinterID, CartridgeCode, UserID, DateTaken,
CartridgeType)
4. Printers (PrinterID (PK), PrinterLocation, PrinterMake, PrinterModel,
BlackCartridge, ColourCartridge1, ColourCartridge2,ColourCartridge3,
ColourCartridge4, ColourCartridge, these latter are text and contain the
cartridgecode relevant)
5. Users (UserID (PK), LastName, FirstName)
There are relationships established between PKs and foreign keys in the
tables
I want the database user to be able to select the printerID and then have
the form show only those cartridges which go with that printer. I have done
this by using the Order table as the record source of the form and putting
in a subform based on the Printers table and using comboboxes on the
mainform to select the PrinterID, the UserID and text boxes to input the
date taken. The subform shows all the cartidges which will "fit" the chosen
printer, but how can I present the form user with only the option to input
one or several of the cartridges listed on the subform? I have struggled
with this for weeks, my visual basic is not up to the task, and any help
most gratefully received!!
Thanks
Jane