update DSUM error

G

Guest

Trying to update in one table, "Invoice", by totally a feild [Total$] in,
"Incoice Parts", where invoice numbers match in both tables

Useing: DSum("[Total$]","Invoice Parts","[Inv#] =" & [Invoice#])

and get not records updating. error message - "did not update due to type
conversion failure"

any thoughts?
 
G

Guest

Hi KLM,
If the [Invoice #] is defined as text filed, then you have to put them in
quotes (single or double). Like

DSum("[Total$]","Invoice Parts","[Inv#] ='" & [Invoice#] & "'")

Hope this will help.
 
B

Brian

KLM said:
Trying to update in one table, "Invoice", by totally a feild [Total$] in,
"Incoice Parts", where invoice numbers match in both tables

Useing: DSum("[Total$]","Invoice Parts","[Inv#] =" & [Invoice#])

and get not records updating. error message - "did not update due to type
conversion failure"

any thoughts?

Most likely Invoice# is a text field, in which case you'll need to do this:

DSum("[Total$]","Invoice Parts","[Inv#] =""" & [Invoice#] & """")
 

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

Top