473,386 Members | 1,736 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,386 software developers and data experts.

Acc 2000 Like Operator Problem

MindBender77
234 100+
Hello All,
I've always had problems with the "like" operator in a query especially using the wildcard "*". This is my latest issue. I have a query that produces 4 fields if the Line Tech field is like that entered in a textbox on a form. This is what I have so far.

Expand|Select|Wrap|Line Numbers
  1. SELECT tbl_security.[Full Name], tbl_PunchCard_Main.[LogIn Date], tbl_PunchCard_Main.[LogIn Time], tbl_PunchCard_Main.[LogOut Date], tbl_PunchCard_Main.[LogOut Time]
  2. FROM tbl_PunchCard_Main INNER JOIN tbl_security ON tbl_PunchCard_Main.[Line Tech] = tbl_security.[User Name]
  3. WHERE (((tbl_PunchCard_Main.[Line Tech]) Like "*[Forms]![frm_Search]![txt_tech]*"));
  4.  
I know (((tbl_PunchCard_Main.[Line Tech]) Like "*[Forms]![frm_Search]![txt_tech]*")) is the problem but, I can't find the correct syntax.

Thanks in Advance,
Bender
Mar 11 '08 #1
1 1472
MindBender77
234 100+
Problem Solved:

Expand|Select|Wrap|Line Numbers
  1. SELECT tbl_security.[Full Name], tbl_PunchCard_Main.[LogIn Date], tbl_PunchCard_Main.[LogIn Time], tbl_PunchCard_Main.[LogOut Date], tbl_PunchCard_Main.[LogOut Time]
  2. FROM tbl_PunchCard_Main INNER JOIN tbl_security ON tbl_PunchCard_Main.[Line Tech] = tbl_security.[User Name]
  3. WHERE (((tbl_PunchCard_Main.[Line Tech]) Like "*" & [Forms]![frm_Search]![txt_tech] & "*"));
  4.  
Bender
Mar 11 '08 #2

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

Similar topics

4
by: dave | last post by:
I am wondering if the following can be done. I want to setup a search page that utilizes full text searching in sql2000. I want the user to type in say "where is bill" and have the query search...
3
by: jaYPee | last post by:
I have converted access 97 to access xp project and connect the table from my sql server 2000. my problem is that when i run my report it says "Invalid SQL Statement. Check the server filter on the...
7
by: Emanuel Ziegler | last post by:
Hello, I want to do some mathematics with functions. In my case the function classes are very complex, but this simple example has the same problems. To allow calculations that begin with a...
11
by: Jonan | last post by:
Hello, For several reasons I want to replace the built-in memory management with some custom built. The mem management itlsef is not subject to my question - it's ok to the point that I have...
3
by: Alex Vinokur | last post by:
Member operators operator>>() and operator<<() in a program below work fine, but look strange. Is it possible to define member operators operator>>() and operator<<() that work fine and look...
8
by: William Bradley | last post by:
First of all I have been working with Access 97 and this morning the owner of the business phoned me to inform me that he had updated to Access 2000 and parts of my forms would not work anymore. ...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
10
by: B Moor | last post by:
Host PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM SQL Server 2000 sp3 (or latest).MS Office 2k3 I have the access 2k3 front end running on server (this may get changed) and all was well...
9
by: Ron | last post by:
Hi All, I've recently installed a program written in Access 2000 on a laptop. The laptop had an existing Office 2000 Pro which of course included Access. But the program acts oddly (more oddly...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.