Code: Select all
hive
=======
hive_id (PK)
identifier
type
...
inspection
========
inspection_id (PK)
ins_hive_id
ins_date
...
What I want to do is this: When the user adds an inspection, he has to select a hive. So, in the inspection form I have to make the ins_hive_id a lookup field. I don't have and I don't need a code field in the hive table because it makes no sense. The identifier is the code. It goes like this: "I inspected hive a2 at 10/9/200 and found ...".
What I did. I set the lookup fields:
Code: Select all
ID Field: hive_id
Code Field: hive_id
Description Field: identifier
Form to Lookup: frm_hive
Code: Select all
Error
An error has occurred while running this query. Please contact technical support and quote error reference: 3f5393f.
The following information is only provided for users logged on as globeadmin.
SQL
INSERT INTO `inspection` (`inspection_id`) VALUES ('1504e033f3e152')
Can you, please, tell me what I do wrong?