D
DeVille
Hi I have this query on my form 'MainForm' which I am
using to find a customers details by Customer name from
the 'CustomerDetailsTable' using a drop box, it works
fine but I was wondering if anyone can explain how to
write a new criteria that lets me type just a part of the
name in the text box [CustomerName] on the 'MainForm'
where I enter the search details. i.e. at the moment if I
want the name 'Fred Blogs' I have to type it out in full,
I would like to be able to just type 'Fred B' or 'Fred'
for example (note it wouldn't really suit me to break the
name into to fields) I think it might be called a wild
card, Im not sure how it works
Thanks in advance
Here is the SQL
SELECT ContactDetailsTable.*, *
FROM ContactDetailsTable
WHERE (((ContactDetailsTable.CustomerName) Like [Forms]!
[MainForm]![CustomerName]));
using to find a customers details by Customer name from
the 'CustomerDetailsTable' using a drop box, it works
fine but I was wondering if anyone can explain how to
write a new criteria that lets me type just a part of the
name in the text box [CustomerName] on the 'MainForm'
where I enter the search details. i.e. at the moment if I
want the name 'Fred Blogs' I have to type it out in full,
I would like to be able to just type 'Fred B' or 'Fred'
for example (note it wouldn't really suit me to break the
name into to fields) I think it might be called a wild
card, Im not sure how it works
Thanks in advance
Here is the SQL
SELECT ContactDetailsTable.*, *
FROM ContactDetailsTable
WHERE (((ContactDetailsTable.CustomerName) Like [Forms]!
[MainForm]![CustomerName]));