Results 1 to 3 of 3
  1. #1
    siffanee is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2

    Question How to combine the VALUE of one columns with the VALUE of another column to produce a text field

    Hello!


    I hope someone can help me. I am a novice in coding and need some guidance.
    I have two columns in a table; one titled Doctor and the other Actual Charges. See image below:
    Click image for larger version. 

Name:	Image1.JPG 
Views:	6 
Size:	48.7 KB 
ID:	19993
    I would like to create a text field (in a report) that returns the Actual Charges for each Doctor in their respective text fields. See image below:
    Click image for larger version. 

Name:	Image2.JPG 
Views:	6 
Size:	69.3 KB 
ID:	19994

    Is this possible?

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    You're looking at a crosstab query, the row headers might be tricky though, at first glance I'm thinking a series of crosstab queries for each charge type, your table structure isn't really conducive to this type of crosstab.

    It would be better if the structure was like:
    Code:
    tblDoctor
    Doc_ID  Doc_Name
    1       Wolfe
    2       Ahmad
    3       Condevaux
    
    tblChargeType
    CH_ID  CH_Name
    1      Regular Charges
    2      OB Charges
    
    tblDoctorLog
    DC_ID  Doc_ID DC_Date
    
    tblDoctorLogCharge
    DLC_ID  DC_ID  CH_ID  CH_Qty  CH_Amt
    In other words a properly normalized structure.

    If you can't or don't want to normalize your structure you would likely have to artificially normalize it with a 'pre' query then run your crosstab query based on the 'pre' query.

  3. #3
    siffanee is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2
    Thank you, rpeare! I will restructure my db and look up crosstab queries! Thanks again!

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

Similar Threads

  1. Replies: 1
    Last Post: 11-12-2013, 02:19 AM
  2. Replies: 10
    Last Post: 05-22-2013, 02:56 PM
  3. How to combine two columns into one
    By JRCharlie in forum Queries
    Replies: 4
    Last Post: 01-20-2013, 01:09 AM
  4. Replies: 5
    Last Post: 12-01-2011, 05:38 PM
  5. If columns are similar combine?
    By westcoastbmx in forum Queries
    Replies: 0
    Last Post: 09-04-2009, 12:54 PM

Tags for this Thread

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