473,408 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Search Engine in Access using VBA

I have an Access database linked from SQL server and I need to create a search engine using VBA.

I managed to create search engine for varchar items, but I cant make it to search numbers as well.
I have a table called Product, with a field Product-ID.
The field defined as Int and all the data is sequential numbers from 1 and on.
How can I alter the statement:
[Product Name] LIKE '%" & search & "%'
so it will search from [Product-ID] ?

Thanks a lot
Jul 19 '10 #1
1 2253
NeoPa
32,556 Expert Mod 16PB
First off, you lose the single-quotes ('), as these denote string data.

That said, LIKE is not valid for numerical data. You can use :
Expand|Select|Wrap|Line Numbers
  1. [Product-ID]=X
With variations on the "=" of "<>", ">", "<", ">=", "<=", etc.
You can also use :
Expand|Select|Wrap|Line Numbers
  1. [Product-ID] In(X,Y,Z)
or :
Expand|Select|Wrap|Line Numbers
  1. [Product-ID]=Between X And Y
Jul 20 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Rod | last post by:
Hi, i am doing a ecommerce website and would like to implement a search engine to find products. All the serach engine I have found on the web are parsing html page! This is not what i want. i...
11
by: Petre Huile | last post by:
I have designed a site for a client, but they have hired an internet marketing person to incrase their search engine ranking and traffic. He wants to put extra-large fonts on every page which will...
44
by: john bailo | last post by:
I microcrap is buying Google -- then I want a GNU search engine ! ( Cant that decrepit creep keep his hands off of anything ? )
3
by: Alastair | last post by:
Hello guys, I've been building a search facility for an intranet site I'm part of developing and we've been building a search engine using Index Server. It mostly works, however there have been...
3
by: A. Nonymous | last post by:
Hello, I have developed a call tracking system for a small call center utilizing an ASP server and an MSSQL server where the call center reps use IE6 to enter in details of calls though the...
3
by: guoqi zheng | last post by:
any one has example/source code how to write an search engine?? Not a search engine using SQl like statement or SQL full text search. A real search engine with index and algo. something like...
3
by: rs | last post by:
Hallo, I have a site with more than 15000 (15 thousand) pages. Each page has almost a textual content. Each page is about 10-25 Kb. I need to build an internal search engine by using Asp Net...
1
by: abhilash12 | last post by:
hai i have to use search word from files in web application so pls telll me is there any search engine for using search word in doc files Thanks And Regards abhilash
8
by: Bruno Rafael Moreira de Barros | last post by:
I have this framework I'm building in PHP, and it has Search Engine Friendly URLs, with site.com/controller/page/args... And on my View files, I have <?=$this->baseURL;?to print the base URL on the...
6
by: pangsans | last post by:
hello i didnt really know where to post this..can you tell me if there is any way i can submit a query to a search engine without using its interface?
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.