Results 1 to 2 of 2
  1. #1
    snofrandy is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Posts
    1

    Dynamic field names per record

    Hello,



    This is by far the most complicated DB i need to build. Basically, my manager wants something that if a certain Account Number is searched for, the lease schedule will pull in along w/ the lease amount similar to this:

    Acct# 5/30/2012 6/30/2012 7/30/2012......5/30/2017
    123456 $1000 $1000 $1000 $1000

    The problem is, all the data I have are the Acct#, Lease Start, Lease Amount. Each account has their own lease start date and lease amount. All leases are 60 months and there are over 500 accounts.

    I can create a crosstab and have them linked via Acct#, but what if the lease date change for another account. Won't it break the query?

    So is there a way to make the field names for the date dynamic, so that each time an account is searched, it will populate the dates for fields. Is this even possible? So for example if i search for another account, it will look like this:

    Acct# 7/6/2011 8/6/2011 8/6/2011......7/6/2016
    345678 $1000 $1000 $1000 $1000

    I'm still new to access and VBA (two years) and I learn everything on the fly. I'm in finance field but this project was given to me because of my working knowledge with Access.


    Thank you!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    What is your table structure? You don't have fields for dates, do you?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. How do I make a field represent other field names?
    By Alpana in forum Import/Export Data
    Replies: 6
    Last Post: 01-15-2012, 08:41 PM
  2. TransferSpreadsheet - Use first row as field names
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 02-23-2011, 11:41 AM
  3. using like with field names
    By TheShabz in forum Queries
    Replies: 4
    Last Post: 10-07-2010, 05:11 PM
  4. Replies: 5
    Last Post: 03-31-2009, 09:16 PM
  5. Quick way to stuff field names into text field
    By kfinpgh in forum Programming
    Replies: 0
    Last Post: 01-04-2007, 01: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