probs w/query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using this query to find the totals for all children where child_ID is equal to the sesison variable.
there is nothing wrong with the session variable b/c other stuff that depends on it works fine.
Is there anything wrong with this query?
thanks!
SELECT Sum(tuition) FROM child WHERE child_ID = '" + Replace(total_due__MMColParam, "'", "''") + "'"
 
There might or might not be anything wrong with the query. Are you not
getting the correct results? Are you getting an error message?

--
Duane Hookom
MS Access MVP


I am using this query to find the totals for all children where child_ID
is equal to the sesison variable.
there is nothing wrong with the session variable b/c other stuff that depends on it works fine.
Is there anything wrong with this query?
thanks!
SELECT Sum(tuition) FROM child WHERE child_ID = '" +
Replace(total_due__MMColParam, "'", "''") + "'"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top