A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Auto suggest institution code?



 
 
Thread Tools Display Modes
  #1  
Old August 31st, 2006, 11:30 AM posted to microsoft.public.access.forms
klr
external usenet poster
 
Posts: 38
Default Auto suggest institution code?

I have a table consisting approx 400 records. Fields are Institution
Code; Name; Address.

The code is Letter followed by 2 digit number e.g. A20, B40, C25.

I have had a request from a colleague who wishes to create a new record
for a new institution, and wants the functionality of either a) prompt
to advise that code already in use (easiest option); b) display list of
available codes or c) automatically suggest a code according to
institution name (i.e. if user types in name Bedfordshire University,
the code returned will begin B## with B## being a code not already in
use.

I would appreciate some advice on how to go about creating this
functionality and opinion on how difficult it would be to create an
automatic code suggestion, or whether it would be best to have some
other method to make it easier to select a code from what in theory
could be a list of up to 2574 codes.

Help!

  #2  
Old August 31st, 2006, 12:19 PM posted to microsoft.public.access.forms
Arvin Meyer [MVP]
external usenet poster
 
Posts: 4,231
Default Auto suggest institution code?

What happens when you have more than 99 B's, but only 3 Z's? Are you going
to use B100, or Z04? Then suppose you get a real Z4? Now what happens?
Suppose Bedfordshire University changes its name? Now what happens?

By making a key dependent on values from within the row (in this case, the
first letter of a field) and repeating the information in every row, you are
violating Second and Third Normal Forms.
--
Arvin Meyer, MCP, MVP
Free MS-Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"KLR" wrote in message
oups.com...
I have a table consisting approx 400 records. Fields are Institution
Code; Name; Address.

The code is Letter followed by 2 digit number e.g. A20, B40, C25.

I have had a request from a colleague who wishes to create a new record
for a new institution, and wants the functionality of either a) prompt
to advise that code already in use (easiest option); b) display list of
available codes or c) automatically suggest a code according to
institution name (i.e. if user types in name Bedfordshire University,
the code returned will begin B## with B## being a code not already in
use.

I would appreciate some advice on how to go about creating this
functionality and opinion on how difficult it would be to create an
automatic code suggestion, or whether it would be best to have some
other method to make it easier to select a code from what in theory
could be a list of up to 2574 codes.

Help!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:35 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.