logo elektroda
logo elektroda
X
logo elektroda

Error: Incorrect Data Type in Access Query Criteria Expression - Form Parameters Issue

gnat1985 5073 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16692241
    gnat1985
    Level 2  
    Hello!
    I am building a query with parameters. The query parameters are to come from the form.
    The form is ready, however, after entering the Criteria and running the query, an error appears: "Incorrect data type in the criterion expression"

    Code:
    Code: SQL
    Log in, to see the code


    I am asking for a hint what is wrong. Let me add that all date formats are the same: short date.
  • ADVERTISEMENT
  • Helpful post
    #2 16692450
    Prot
    Level 38  
    gnat1985 wrote:
    " Between :?: [forms] [Report form]! [Date from] and :?: [forms]! [Report form]! [Date to]"


    And in which Access or SQL expressions can be used Between :?: whether and :?: :D

    Are the relevant fields in the form also properly formatted or masked (with a typing pattern)?
  • #3 16692851
    gnat1985
    Level 2  
    The code obviously has 'Between' and 'and'. Cells are formatted without an input mask.
ADVERTISEMENT