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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. trygvea

    How do I pass param to an 'IN' clause?

    Thanks for taking the time to explain. However, I have found another problem. If I am in Access and I run the query using the following parameters (,2,1,) both rows will be deleted. But when I pass the the same parameter string from an ASP page the query will only delete the Pkey of 2 and...
  2. trygvea

    How do I pass param to an 'IN' clause?

    This example appears to be working but I'm not quiet sure I understand why it is working. Could you please take a minute to explain. When I researched the Instr function it suggested that it will return the index location of the string being search when it finds the match. If that is the case...
  3. trygvea

    How do I pass param to an 'IN' clause?

    I tested your solution above but it does not work correctly. Here is my sample table. PKey Description 3 Sample one. 8 Sample two. 38 Sample thirty eight. If I use your above query and pass the parameter (,38,) then ALL three rows are deleted. Thanks in advance for any other...
  4. trygvea

    How do I pass param to an 'IN' clause?

    Here is my SQL statement. DELETE * FROM TableA WHERE PKEY IN ([paramIDs]) When I am prompted for the param I enter id numbers separated by comma, ie 1,2. This will not work. I know this is probably a simple fix. Please help.
  5. trygvea

    Self Join with Counts??? Need help pLEASE.

    I have one table that I need two counts from. The table holds information about a sports game. I want the number of games won and the number of games tied for a given team. Table: Game Fields: Game_ID,Home_Team_ID,Away_Team_ID,Win_Team_ID If the game was a tie then Win_Team_ID = -1 instead...

Part and Inventory Search

Back
Top