PLease HELP ???????

oceanman

New Member
Joined
Mar 19, 2005
Messages
9
Dear All

I have a small problem in Access :

I have a table named " Table1" which has the following details :

ID Name
---------------------------
1 Lewis Alex & Co
2 Lewis & Co
3 Field & Lewis Co
4 Morgan & Co
-----------------------------------

Also I Have a Query named "Query1" which is as follows

SELECT Table1.ID, Table1.Name
FROM Table1
WHERE (((Table1.Name)=[Forms]![Form1]![txtname] & "*"));

------------------------------------------------

Also I have a form named " Form1" in which i have a text box named "txtname" and a command button "cmdOK"

I have opend the Query1 on click event of cmdOK. Everything runs fine but no data is displayed if i enter "Lewis" in the textbox and press OK.

PLeaseeeeeeeee. Can someone help me and tell me what is wrong.

Thanks in Advance.


:o :-D :-(
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
See my response in your other post.
 
Upvote 0

Forum statistics

Threads
1,223,261
Messages
6,171,075
Members
452,377
Latest member
bradfordsam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top