Hi Guys,
Newbie here.
I'm writing a small farm database to log cattle movements in and out the farm. I have several simple "lookup" tables (clients, locations, activities, vehicles, livestock. etc) which are used to simplify data entry into the main data table called the "Register".
The “Register” table is quite straight forward except it has 1 multi-value field called "livestock" which is where I store the cattle tag numbers of each of the cattle the shipment.
The main entry form "Register Entry" uses the lookup tables to enter in each movement and also allows me to move backwards and forward through the movements so I can review them at a glance.
Entering data into the form is fine, the problem arises when I use the entry form to browse through the data.
For example (assume an empty “Register” table): -
- Record navigation bar reads record 1 of 1
- I get a delivery of 5 cattle, I open the entry form and log the client, date time, and the tag numbers of the cattle (e.g. 123,112,333,432,534 these tag numbers are in the multivalued field). Checking the Register table, the entries appear on one row (the first row) so all seems as expected.
- If I exit the entry form and go back in, the record navigation bar for some reason reads record 1 of 5 (not 1 of 1) and if I create another entry, the record number, according to the Record navigation bar, is record 6 of 6. Instead of 2 of 2.
- For some reason the record navigation bar on the entry form treats each value in the multivalued livestock field as a separate record?
- However, when I check the “Register" table for this new entry, the new record is in fact on row 2.
- If the new entry has 20 cattle tags, the record navigation bar jumps to 25 records etc (but only shows as a single record in the table)
I’m not sure why this is happening but it means the number of records I will need to browse through will become very large as each movement could have up to 30 cattle, so as far as the entry form is concerned, I will have to step through 30 records before the form moves to the next “actual” record.
Any advice appreciated.