Results 1 to 2 of 2
  1. #1
    d088 is offline Novice
    Windows 7 Access 2000
    Join Date
    Jul 2010
    Posts
    1

    Column Name Probelm - Weird Scenario Due to Bad Design... :(

    Guys,

    I have volunteered to assist a local non-profit add some functionality to their existing website. (I had a few too many drinks before a meeting...) The site is ASP Classic vbscript with a Access 2000 backend. Overall the site was done well, but there is one design issue that is causing me problems. I'll do my best to explain.

    tblContact
    pkContactID (replicationID)
    firstName (text)
    lastName (text)
    etc, etc (...)
    function01 (byte)
    function02 (byte)
    ...
    function25 (byte)

    tblFunction
    pkFunctionID
    description

    In tblFunction the IDs are function01, function02,... function25 and the description field is the titles of each function, such as "Email Distribution", "Membership Committee", "Teacher Appreciation Committee".

    I am trying to create an export feature so that the group can generate lists but the column names of function01, function02 mean nothing to them.



    I thought about redesigning the table structure to use reference tables, but it would cause multiple problems with the existing website features, and I don't drink nearly enough to volunteer to redo everything.

    Is there a way to dynamically rename the columns in a query based on the column name being equal to the ID field in another table???

    Any assistance would be GREATLY appreciated!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    To start off with, my knowledge of ASP is nil. logic-wise though it cant be much different than how forms work in Access.
    If my assumption is correct, you can pull both the IDs and the descriptions and just use the descriptions as the labels. The user will see the label masking the actual functionxx and you wont need to rename anything.

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

Similar Threads

  1. Weird Query results
    By UCBFireCenter in forum Queries
    Replies: 0
    Last Post: 10-06-2009, 03:38 PM
  2. Scenario help
    By RadBrad in forum Access
    Replies: 3
    Last Post: 08-02-2009, 10:35 PM
  3. I need help with weird stuff happening on a DB
    By makotoshishio in forum Access
    Replies: 9
    Last Post: 04-02-2009, 12:20 PM
  4. Can I UseTabs in This Scenario?
    By skyrise in forum Forms
    Replies: 0
    Last Post: 03-06-2009, 11:10 AM
  5. Get the sum of decimal values - weird results
    By BengtCarlsson in forum Queries
    Replies: 2
    Last Post: 02-10-2006, 04:29 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