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

Please help with sql, macro or function

let say i have a table with a field called "fullName" wherein encoders
can type a persons full name (i.e. "Paul Mangaser", "Chris Torres
Jr.", "Amelie T. Mauresmo", Andy B Rodick").

i want to create a form with a field called "Search String". a user
then types in 1 or more strings and this will search the "fullName" in
the table and display any matches.

Eaxample, TABLE1 has the following entries: "Paul Abrilla", "Paul
Manangon", "Amie Torres", "Chris Abrilla", "Nilo T Abrilla".

in FORM1 a user types in "Abrilla" in the "Search String" field and
hit enter. the following records will be displayed or listed: "Paul
Abrilla", "Chris Abrilla", "Nilo T Abrilla". If user types in "Paul",
"Paul Abrilla" & "Paul Manangon" will be displayed. If user types in
"Paul Abrills" only one record will be displayed.

Can SQL do this in ms-access. Is there an SQL function, operator,
clause i can use that will perform this task? Is there a macro I can
use that will perform this task? You can email me directly at
pc*******@yahoo.com. Thanks in advance. Any ideas or hellp will be
appreciated.

Paul
Nov 13 '05 #1
2 1473
Query would look something like this:

SELECT fullName FROM TableName
WHERE fullName Like "*" &
[Forms]![FormName]![Search String] & "*";

--

Ken Snell
<MS ACCESS MVP>

"Paul" <pc*******@yahoo.com> wrote in message
news:78**************************@posting.google.c om...
let say i have a table with a field called "fullName" wherein encoders
can type a persons full name (i.e. "Paul Mangaser", "Chris Torres
Jr.", "Amelie T. Mauresmo", Andy B Rodick").

i want to create a form with a field called "Search String". a user
then types in 1 or more strings and this will search the "fullName" in
the table and display any matches.

Eaxample, TABLE1 has the following entries: "Paul Abrilla", "Paul
Manangon", "Amie Torres", "Chris Abrilla", "Nilo T Abrilla".

in FORM1 a user types in "Abrilla" in the "Search String" field and
hit enter. the following records will be displayed or listed: "Paul
Abrilla", "Chris Abrilla", "Nilo T Abrilla". If user types in "Paul",
"Paul Abrilla" & "Paul Manangon" will be displayed. If user types in
"Paul Abrills" only one record will be displayed.

Can SQL do this in ms-access. Is there an SQL function, operator,
clause i can use that will perform this task? Is there a macro I can
use that will perform this task? You can email me directly at
pc*******@yahoo.com. Thanks in advance. Any ideas or hellp will be
appreciated.

Paul

Nov 13 '05 #2
Thanks for the reply. I kind of figure it out after browsing the
group. Thank you very much
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andrew | last post by:
Hello, Is it bad practice to use a function as a parameter of a macro? Will the compiler create a full copy of the function's machine code for each invocation of the macro? Or does it create...
13
by: Shi Jin | last post by:
Hi there, While I was trying to disassemble a simple C program for my OS course, I found that the call to function longjmp is actually called to siglongjmp under linux. And similarly, under...
10
by: Codas obfuscatus | last post by:
If I pass a negative number as argument to sqrt() it returns a NAN as expected. Is there any way to debug this problem using GDB Let me know Co
15
by: Buck Rogers | last post by:
Hi guys! Task 1: Write a program which presents a menu with 5 options. The 5th option quits the program. Each option should execute a system command using system(). Below is my humble...
10
by: Karim Thapa | last post by:
Why following macro does not work? #define removebrace(x) x void Foo(int a, int b, char *txt, int d, int e); main() {
5
by: name | last post by:
Tricky I'm trying to do the following string sString = "Here is a test string"; string sFieldRef = "sString"; MessageBox.Show(sFieldRef); //How do I get this line to display: Here is a...
5
by: Bill | last post by:
This database has no forms. I am viewing an Access table in datasheet view. I'd like to execute a macro to execute a function (using "runcode"). In the function, I'll reading data from the record...
14
by: amit.man | last post by:
Hello i need to write a MACRO function that look something like this """ do_somthing(); for(int i=0;i<100;i++) {do_something_else())} return(somthing_other_then_those()) // a double type """
9
by: holysmoke | last post by:
Hi all, I have a function void actualfunction(unsigned int t, unsigned int lineno) { .... } I want that it is called only from a macro I wrote for it (I don't want to use a wrapper...
16
by: mdh | last post by:
I have asked a few questions about Macros...and think what I have been missing ...and which all who have replied clearly understand...is that this is a Pre-processor action. Hopefully the above is...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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.