Results 1 to 2 of 2
  1. #1
    hollyh is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    3

    Red face newbie needs help

    i am not sure how to describe this so bare with me

    basically i have a VISIT TABLE
    with

    VisitID
    PatientID
    VisitType (1st Trimester, 2ndTrimester, etc)
    and then columns pertaining to the visit

    We are trying to do a longitudinal study where we compare each visit type data to itself to be exported to excel so it would look like this all in one column based on patientID



    PATIENTID | 1st Trimester | data | 2nd Trimester | data |

    is there a way to query this so the visit types and data are all in the same row based on patient id

  2. #2
    dreday's Avatar
    dreday is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    58
    You need to do a crosstab query where the row heading is [Patient ID] & " | ", the column heading is [VisitType], and the value is [VisitType] & " | " & [Data] & " | ". From there a 2nd query can be used to combine all the fields using &.

    Hope this helps

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

Similar Threads

  1. IIF condition -Newbie
    By bldrc in forum Access
    Replies: 9
    Last Post: 07-21-2011, 01:30 PM
  2. I need (newbie) help, please!
    By Over in forum Access
    Replies: 2
    Last Post: 02-05-2011, 10:14 AM
  3. can you help a newbie out
    By jayjayuk in forum Access
    Replies: 1
    Last Post: 10-10-2010, 07:42 PM
  4. Newbie needs profound help.
    By adquinn in forum Access
    Replies: 2
    Last Post: 06-30-2010, 08:36 PM
  5. Help a newbie
    By g8rnc in forum Access
    Replies: 1
    Last Post: 06-09-2010, 12:58 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