• ADO and Access query wildcards (2000/XP)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » ADO and Access query wildcards (2000/XP)

    Author
    Topic
    #430573

    Thanks, I’m sure this will help others – the difference can be bewildering!

    Viewing 0 reply threads
    Author
    Replies
    • #1005825

      Edited by HansV to update URL and make it clickable – see Help 19

      This isn’t a question but the solution to a problem I had earlier today.
      I’ve had a quick search and didn’t find anything here but apologies if I didn’t look hard enough and this info is duplcated elsewhere in the lounge.

      I was opening a recordset in code using ado but it was returning EOF = True. The query forming the source of the recordset definitely contained records.
      I eventually realised this was because the WHERE criteria in the query contained the wildcard symbol * and ADO requires %.

      Changing the * to % in the query returned the correct number of records in the recordset.

      BUT opening the query from the databse window returned nothing dizzy

      Eventually found this article Using the Right Wildcard Characters in SQL Statements

      And discovered changing the word ‘Like’ to ‘ALike’ allows the use of the ADO wildcard in the Access query grid mice

    Viewing 0 reply threads
    Reply To: ADO and Access query wildcards (2000/XP)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: