Results 1 to 4 of 4
  1. #1
    is49460 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    40

    Base-34 class or alternetives


    Hello,

    I need to have a base-34 (or base-36) numeric system for one of the fields in my database. The field itself can be only 2 characters long (and that's the reason for the base-34 type to get as many unique values as possible). After doing a little research I couldn't really find anything about base-34 coded in VBA. So, I thought to ask if anyone has any advice or references before I start coding from scratch (not having overload operators in VBA will not make it pretty....) Thanks for suggestions.

  2. #2
    is49460 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    40
    Rather than creating an entire class with all the operators, the latest idea of my own was to create two functions: DecTo34 and my34ToDec. Use those functions to convert stored value to decemal to make calculations and then convert the value back to base-34 once the number is ready to be stored. Any comments?

  3. #3
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    I did a google search for "decimal to alphanumeric" (base-36), and found this http://social.msdn.microsoft.com/For...a-21c1f0b9762b

  4. #4
    is49460 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2010
    Posts
    40
    Quote Originally Posted by TheShabz View Post
    I did a google search for "decimal to alphanumeric" (base-36), and found this http://social.msdn.microsoft.com/For...a-21c1f0b9762b

    Thanks for the reference. I'll probably end up doing just that adding the second function to convert back to decimal. Thanks again!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Data base design
    By mduplantis in forum Database Design
    Replies: 1
    Last Post: 06-05-2010, 07:30 PM
  2. Storing asset class Correlations help!
    By tdham in forum Database Design
    Replies: 1
    Last Post: 04-27-2010, 08:33 AM
  3. object or class does not support the set of events
    By couch potato in forum Programming
    Replies: 2
    Last Post: 03-20-2010, 08:55 AM
  4. Same Form, different base query
    By Goodge12 in forum Forms
    Replies: 3
    Last Post: 01-22-2010, 11:29 PM
  5. In over my head with a database class
    By fixittech in forum Database Design
    Replies: 3
    Last Post: 01-22-2010, 07:45 AM

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