jesusoneez
IT Dogsbody
- Local time
- Today, 20:47
- Joined
- Jan 22, 2001
- Messages
- 109
I have a database (backend - just tables), that stores data for an asset register/call logging application. The frontend is pretty much finished, but I'm having one or two issues that are annoying me.
I have a form for logging requests...most combo boxes are filled in by looking at normalisation tables, such as cmbTechnician, cmbUser, cmbRequestType etc.
All this part works with no problems. There is an area on the form that looks at tblDesktops, tblLaptops and tblPrinters. When you use a combo box to pick a Desktop, other fields (such as make, model, serial number) are automatically filled in. Same goes for the Laptop combo box and Printer combo box.
This works fine. Note that these are NOT required fields in tblCallLog, as not all requests relate to a Desktop, Laptop or Printer. However, unless I pick an item from all three, the record will not save, producing the error;
"The Microsoft Jet database engine cannot find a record in the table 'tblPrinters/Laptops/Desktops' with key matching field(s) 'Printer/Laptop/Desktop'."
This has stumped me somewhat, as the combo boxes work fine if I select an item from them, telling me the relationship is working OK, so why it's insisting something has to be entered in these unrequired fields is beyond me.
Haylp!
EDIT: I've enclosed a picture of the relationships pertaining to this problem...these relationships were setup by the process of using "lookup" whilst setting up the tables. AssetID is an autonumber field, and I'm wondering if this is where the problem. All other primary keys are not autonumbers, as the text data kept within them is unique.
I have a form for logging requests...most combo boxes are filled in by looking at normalisation tables, such as cmbTechnician, cmbUser, cmbRequestType etc.
All this part works with no problems. There is an area on the form that looks at tblDesktops, tblLaptops and tblPrinters. When you use a combo box to pick a Desktop, other fields (such as make, model, serial number) are automatically filled in. Same goes for the Laptop combo box and Printer combo box.
This works fine. Note that these are NOT required fields in tblCallLog, as not all requests relate to a Desktop, Laptop or Printer. However, unless I pick an item from all three, the record will not save, producing the error;
"The Microsoft Jet database engine cannot find a record in the table 'tblPrinters/Laptops/Desktops' with key matching field(s) 'Printer/Laptop/Desktop'."
This has stumped me somewhat, as the combo boxes work fine if I select an item from them, telling me the relationship is working OK, so why it's insisting something has to be entered in these unrequired fields is beyond me.
Haylp!
EDIT: I've enclosed a picture of the relationships pertaining to this problem...these relationships were setup by the process of using "lookup" whilst setting up the tables. AssetID is an autonumber field, and I'm wondering if this is where the problem. All other primary keys are not autonumbers, as the text data kept within them is unique.
Attachments
Last edited: