Results 1 to 3 of 3

Thread: Record select error

  1. #1

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    Record select error

    while designing crystal report i had set the record selection formula in the crystal report 7 before calling it form vb6 i have cleared that selectio formula from the crystal report and pasing it at run but it is showing error

    Error in formula (Record_Selection>

    '
    '
    The remaining text does not appear to be part of the formul

    this is always happening when i use give the fomula at design time so that i can easily but the rpt dosnt work when i call from vb6 passing the same formula at the run time what could be the problem

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Record select error

    Post your code.

  3. #3

    Thread Starter
    Hyperactive Member yousufkhan's Avatar
    Join Date
    Jan 2002
    Location
    India
    Posts
    492

    Re: Record select error

    Problem is not with code actualy
    while designing i had set the selecttion formula like this

    {Folio.FolioNo}=2 in the crystal reports edit record selection formula


    Dim StrPrint As String
    Dim StrPrintFor As String
    StrPrint = MsgBox("Do you want print bill of Room No. : " & txtroomno.Text, vbYesNo, "CheckOut")
    If StrPrint = vbYes Then
    CrBill.Reset
    CrBill.ReportFileName = App.Path & "\FinalBill-Test.rpt"
    txtFolno.Text = 11
    StrPrintFor = "{Folio.FolioNo}=2"
    CrBill.SelectionFormula = StrPrintFor
    CrBill.WindowState = crptMaximized
    CrBill.Destination = crptToWindow
    CrBill.Action = 0
    End If

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