VBA code help

Comments

1 comment

  • Official comment
    Avatar
    Technical Support

    Hello Ali,

    What data type is VType? If it's a number, your criteria is okay. If it's text, the value in the criteria needs to be enclosed by quotes.

    An easy way to create SQL strings is to create the query in the Access query designer then view the SQL it generates. You can then copy that into your module and substitute the values to change.

    Comment actions Permalink

Please sign in to leave a comment.