aphelps
Bird Man
- Local time
- Yesterday, 22:56
- Joined
- Aug 2, 2002
- Messages
- 32
Hi, again--
I have a primary key, NestCode. NestCode is made up of two letters (which represent the island code on which the nest occurs), then three numbers (which represent the number of that nest on that island), then two numbers (which is the year code). For instance, LB00102 is the first nest on Lower Bernard I. in 2002.
Now, below the nest code field on the form are three more fields, IslandCode, NestNumber, and YearCode. What I want to do is have these three autopopulate based on the entry in the NestCode field. I have tried to do this with default values of:
=Left([NestCode], 2)
=Mid([NestCode], 3, 3)
=Right([NestCode], 2)
I've also tried it with the table referenced as well, though I'm not sure the syntax is right (ie, "=Left([tblNestLocation:NestCode], 2)").
However, none of these provide me with any values (or any sort of error, just leaves the fields blank, I can type in the values but they don't fill in automatically).
This all occurs in Access2K on Win2K. The form in which this all happens is designed for data entry across multiple tables and is based on a multi-table query.
Any ideas for someone that 1-does not use VBA and 2-understands that the scenario described herein involves storing redundant data (I have reasons for needing NestCode split and saved separately)?
Thanks--Adam
I have a primary key, NestCode. NestCode is made up of two letters (which represent the island code on which the nest occurs), then three numbers (which represent the number of that nest on that island), then two numbers (which is the year code). For instance, LB00102 is the first nest on Lower Bernard I. in 2002.
Now, below the nest code field on the form are three more fields, IslandCode, NestNumber, and YearCode. What I want to do is have these three autopopulate based on the entry in the NestCode field. I have tried to do this with default values of:
=Left([NestCode], 2)
=Mid([NestCode], 3, 3)
=Right([NestCode], 2)
I've also tried it with the table referenced as well, though I'm not sure the syntax is right (ie, "=Left([tblNestLocation:NestCode], 2)").
However, none of these provide me with any values (or any sort of error, just leaves the fields blank, I can type in the values but they don't fill in automatically).
This all occurs in Access2K on Win2K. The form in which this all happens is designed for data entry across multiple tables and is based on a multi-table query.
Any ideas for someone that 1-does not use VBA and 2-understands that the scenario described herein involves storing redundant data (I have reasons for needing NestCode split and saved separately)?
Thanks--Adam