Results 1 to 23 of 23

Thread: [RESOLVED] Composite Table Issues - Does not match table definition

Hybrid View

  1. #1
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Composite Table Issues - Does not match table definition

    No, we only have two fields... created and changed by.... but yes, in short, that's what we have... so now let's say I want to pull a record and see who created it and who last edited it... it looks like this:

    Code:
    select 
      T.Id, T.Field1, T.Field3, C.Name as CreatedBy, E.Name as EditedBy
    from SomeTable T
    inner join *****ers C on T.CreatedByID = C.ID
    inner join *****ers E on T.ChangedByID = E.ID
    Now I see the data in the record (T) and who created it (C) and who last changed the record (E).


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Composite Table Issues - Does not match table definition

    This is what the structure looks like. Does it look fine for what I need to accomplish?
    Name:  erd.JPG
Views: 215
Size:  69.1 KB

Posting Permissions

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



Click Here to Expand Forum to Full Width