CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    12

    [RESOLVED] CR Formula problem

    Dear All,

    i am using cr 8.5, vb6 & MS Access 2007.
    My problem is that when i am trying to fetch data from access with the help of formula i receive this error:

    A number, currency amount, boolean, date, time, date-time, or string is expected here.

    The code is mentioned below:

    strformula = "{trans.vdate} in date(" & _
    Format(Combo1.Text, "dd-MM-YYYY") & ") to date(" & _
    Format(Combo2.Text, "dd-MM-YYYY") & ") AND {trans.accode}= " & Chr(39) & Combo4.Text & Chr(39)

    trans.accode is the text.

  2. #2
    Join Date
    Sep 2006
    Posts
    12

    Talking Re: CR Formula problem

    it's done. the problem in date formating.

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
  •  





Click Here to Expand Forum to Full Width

Featured