Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    KWHAT,


    Well there are limitations, I need to set the first two characters as a state and the last two need to be characters as well, so there a multiple groups that need to be assigned a unique ID within the same state therefore I need the last two letters to change incrementally, there can’t be any numerical values in the string .
    What exactly does this mean first two characters as a state?

    Also, from experience, do not over complicate code structures. Use meaningful field names with single defined purpose. Each field has one meaning and holds 1 piece of info. Don't get too cute where every character in every position of some multi-character code means something. For example,
    AA11RCF7 --I've seen things like this
    AA --current model
    11-- ProductionMonth
    R -- Red
    C---Child
    F --Female
    7 -- Size 7

    This sort of thing is pure foolishness. You will tie yourself in knots before you know.

    Anyway, good luck with your project

  2. #17
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Quote Originally Posted by KWHAT View Post
    Thanks, for the steps they really helped, but for my own curiosity how would you go about creating a unique string with four characters, were the two preceding characters must be the state or province.
    First I would have a table of States_Provinces with values and work from that.

    Join tblState_Prov with 2 copies of TblAlphaChar.. is my first thought

    If you need a 4 alpha char unique combinations (forget your Prov/State), you would use 4 copies of TblAlphaChar.

    BUT, I am not condoning nor encouraging this sort of thing, there are other options.

    Because something CAN be done, doesn't mean it SHOULD be done. Focus on WHAT, before getting too involved in HOW.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 05-22-2012, 10:46 AM
  2. Replies: 2
    Last Post: 02-25-2012, 10:17 AM
  3. Replies: 11
    Last Post: 02-13-2012, 10:06 AM
  4. Cleaning up the alphabet
    By ducecoop in forum Access
    Replies: 4
    Last Post: 10-28-2010, 08:33 AM
  5. Alphabet break in report
    By amccook in forum Reports
    Replies: 8
    Last Post: 08-27-2010, 03:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums