I'm new to Access and I'm working with queries.
What I'm trying to do is a query which asks for a criteria when run (i.e. using "[]") for a field type "string": using the "LIKE" operator, it would be possible to input only the first "n" characters, obtaining all the records in which the searched field starts with those "n" characters.
To be clearer: searching a field CustomerID, containing "Romoluzzi" and "Romoli", I want that my query asks me "Customer?" and after my input of "Romo", I get both the records with Romoluzzi and Romoli.
The query is unique, the criteria LIKE must be in the "[]", because it can be different at every run ("Romo" is not fixed).
I thank in advance everyone helping me.![]()
Last edited by Romoluzzi; 01-08-2011 at 07:49 AM.
In your criteria type:
Like [Enter the first couple of letters of your parameter here] & "*"
Good Luck
Alan
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
Thank you so much for your prompt and useful help!!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks