Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Prompts User Multiple Times for the Same [] info

Status
Not open for further replies.

JeffTax

Programmer
Feb 8, 2005
2
CA
Hello,

I'm writing a simple three line MS Access query that uses the INSTR function and prompts the user for any word they want to search for in a field. The problem is that when I run the query sometimes the same prompt appears more than once and in some cases up to four times.

Any ideas why this happens? See sample SQL code below:

SELECT Table1.NAME, Table1.ACCT, Table1.DESCRIPTION
FROM Table1
WHERE (((InStr([Table1].[NAME],[whatName]))>0));
 
where are you running the query from? A form? report?

Leslie
 
Thanks for the help Leslie.

Right now the query is simply being run by clicking on the query from the list of queries in MS Access pane. (I.E. From the same pane where you design new queries)

Any ideas? Is it a bug?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top