type convertion failure

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

Guest

The following sample from Access 2003 doesn't work if the key joined fields
are text:

DSum("[Quantity] * [UnitPrice]","Order Details", "[ProductID]=" &
[ProductID])

Does anyone knows why?

Thanks!
 
If the ProductID field is a text type, change it to

DSum("[Quantity] * [UnitPrice]","Order Details", "[ProductID]='" &
[ProductID] & "'")

Adding single quote before and after
 

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

Similar Threads


Back
Top