Results 1 to 3 of 3

Thread: formula help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    122

    formula help

    Hi all,

    I am trying to pass a string in the selection formula and I keep getting the selection error . Can anyone give ur inputs as how to assign string values in the selection formula. In crystal report i used the selection tool and was able to get the result {table1.field1}= "s" but when i try in vb6 i get this error


    rptdetail.SelectionFormula = "{Table1.field1} =" & s

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    122

    Re: formula help

    Guys Iam still stuck at this point, need ur inputs on this issue

    thanks!

  3. #3
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: formula help

    Try :
    rptdetail.SelectionFormula = "{Table1.field1} =" & chr(39) & s & chr(39)

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