Results 1 to 4 of 4

Thread: Printing Labels using DataReports

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    45

    Question Printing Labels using DataReports

    I am using DataReports to print labels and have set up the data report to print out 21 labels making it 3 columns of 7 labels...

    The problem I am having is instead of each label being individual (what I want) each row is the same as the previous row? I have tried making each label individual by add 'distinct' to the sql statement which bring back the data, anyone help me?

  2. #2
    Hyperactive Member CHAMPGARY's Avatar
    Join Date
    Jul 2002
    Posts
    386

    Re: Printing Labels using DataReports

    Hi,
    can you post sql statement

    Regards,
    Champgary

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    45

    Re: Printing Labels using DataReports

    Heres my SQL code:

    VB Code:
    1. If ShowAllResults = True Then
    2.  
    3.     query = "select distinct Access_NO,ICCID " & _
    4.             "from Test_Dec_Puk_Details tdPD, Test_Dec_GSM_PP_Access_Numbers tdGPAN " & _
    5.             "where ICCID_Full = '" & FileIDToPrint & "' " & _
    6.             "and tdPD.ICCID = Ltrim(tdGPAN.Assoc_Access_No)"
    7.            
    8. Else
    9.  
    10.     query = "select distinct Access_NO,ICCID " & _
    11.             "from Test_Dec_Puk_Details tdPD, Test_Dec_GSM_PP_Access_Numbers tdGPAN " & _
    12.             "where tdPD.ICCID = Ltrim(tdGPAN.Assoc_Access_No) " & _
    13.             "and ICCID_Full = '" & FileIDToPrint & "' " & _
    14.             "and Access_NO >= '" & PhoneNumberFrom & "' " & _
    15.             "and Access_NO <= '" & PhoneNumberTo & "'"
    16.  
    17. End If

    ????

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Printing Labels using DataReports

    Moved to reporting section

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