Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 20th, 2003, 07:34 PM
Registered User
Join Date: Nov 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ado.recorset.filter "like" trouble

If I use this code, Error 3001 is shown.

mystring = "*pub"
Adodc1.Recordset.Filter = "name LIKE '" & mystring & "'"

I know '*' and '%' at the first mke this trouble.
My question is how I can filter this type terms.

Old November 21st, 2003, 04:53 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

For ADO you always use % as the wildcard, not *
Old April 14th, 2017, 03:21 PM
Registered User
Join Date: Jan 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default rst.Filter = varMyBkmrk() crashes here

I have used a bookmark in Access ADO for years using "*" & Me.ProductFilt & "*" and works, I find the products, yet now when I get here it crashes rst.Filter = varMyBkmrk(), yet the bookmarks are assigned. Has never crashed before, have lots of finds just like this and they all crash now

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADO Data Shape - Filter aggregate dwperry SQL Language 0 March 31st, 2008 10:40 AM
Difference between ADO and ADO.NET rakeshclose2u ADO.NET 2 April 23rd, 2007 03:57 AM
Strange trouble with ADO.NET bunnyhopper ASP.NET 1.0 and 1.1 Professional 3 January 16th, 2007 12:54 PM
ADO Filter: Case Insensitive moshepack All Other Wrox Books 0 April 29th, 2004 08:51 AM
ADO could ADO counot find the specified provider. Rob Collie Classic ASP Databases 2 June 9th, 2003 04:12 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.