Search for record data with special char "

Posted on 1998-12-21
Last Modified: 2010-05-03
in vb5.0, i tried few attempts like:
.FindNext "Stk_code Like '*"*' "
.FindNext 'Stk_code Like "*"*" ' etc..

Is there a way to search for " (and any special chars) ?
Question by:collinng
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1451840
Inclose special chars in brackets
FindNext "Stk_code Like " & ["]* & "

Author Comment

ID: 1451841
jbil, thanks for your reply.
i tried:
FindNext "Stk_code Like " & ["]* & "
FindNext "Stk_code Like '&["]*&'  "

however, the system takes the 2nd " as the closing inverted comma, and gives an error message refering to ] as being invalid.

Do your have alternative solution ?



Accepted Solution

uilleann earned 50 total points
ID: 1451842
depending on your codetabel try

var = "*" & Chr(34) & "*"

FindNext "Stk_code Like " & var


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
passing parameter in sql procedure 9 70
Adding to a VBA? 6 90
Access 2013 combo box not working 3 74
VBA Shell can't Find Word document 11 155
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question