Results 1 to 2 of 2

Thread: formula

  1. #1

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    formula

    Im trying to open a crystal report in vb.

    Im using the RecordSelection formula propoerty of the report object.

    In the criteria i have the following:

    VB Code:
    1. strFormula = strFormula & " AND {vwProposalsByOriginator.OpenDate} BETWEEN #" & CDate(frmReports.txtFrom.Text) & "# AND #" & CDate(frmReports.txtTo.Text) & "#"

    But its not working...have I messed something up...

    strForumla originally has the following

    vwProposalsByOriginator.Originator='jblow'

  2. #2

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Nevermind

    crystal doesnt like between :-d

    VB Code:
    1. strFormula = "{vwProposalsByOriginator.OpenDate} >=#" & CDate(frmReports.txtFrom.Text) & "# AND {vwProposalsByOriginator.OpenDate} <=#" & CDate(frmReports.txtTo.Text) & "#"

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