+ Reply to Thread
Results 1 to 7 of 7

How to structure lots of fields as one record.

  1. #1
    Registered User
    Join Date
    01-01-2005
    Posts
    56

    How to structure lots of fields as one record.

    Hi,I am trying to setup my tables, but before I started, is like some guidance on how to set them up. Here's the plan:
    Each day, a person will enter about 200 values in a form. Currently they enter them in a spreadsheet. With that being said, each employees entries will count as one record/occurence for that day/shift. For example the fields might be: name, date, shift, tag1value, tag2value, tag3value, etc etc, - tag180value. These are filled out each day and later on, I will want to search this day and be able to see the form with all these values filled in. Also, I may add/change the entry names occasionally. Ideally, I would like a table named "tags" that I could add and change and the form would pull everything into, however I didn't think this was doable.
    Anyone have any suggestions/solutions.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to structure lots of fields as one record.

    Check out the User Defined Types aka UDT's. With a UDT aka data structure you can do exactly what you describe.

    Type Tageroo
    Name As String
    Date As Date
    Shift As String
    Tag(180) As String
    End Type

    Dim T() As Tageroo

    at the top of a module under Option Explicit
    Last edited by xladept; 07-10-2012 at 08:00 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: How to structure lots of fields as one record.

    it sounds to me like you want
    employeeID
    date
    shift
    tag#
    tag_value

    as the actual table fields.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  4. #4
    Registered User
    Join Date
    01-01-2005
    Posts
    56

    Re: How to structure lots of fields as one record.

    Xladept - I'm still looking into your suggestion. Thanks

    Joseph - are you referring to using that table as a lookup column? I will have 180+ entries in that table logged twice daily.

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to structure lots of fields as one record.

    You're welcome. Should you want to post an example, I could spend some time on it tomorrow.

  6. #6
    Registered User
    Join Date
    01-01-2005
    Posts
    56

    Re: How to structure lots of fields as one record.

    Quote Originally Posted by xladept View Post
    You're welcome. Should you want to post an example, I could spend some time on it tomorrow.
    I have just started, but maybe having some data will bring more clarity.

    Basically, the employee will fill out "Gly Shift Log" each shift. I have 20 or so lines for them to fill out, there will be quite a bit more.

    Thanks
    Attached Files Attached Files

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: How to structure lots of fields as one record.

    Hi Cboggie,

    I haven't got a compatibility pack for ACCESS - I guess I can't help you, but the VBA for UDT's is still relevant.

    Perhaps an ACCESS expert will help you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1