syntax

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

Guest

hi,
i do alot of combination and i didnt succeed :( to insert the boot
information:

strSQL = "insert into Exception values (" & Me!obligor_Id & ",rsobligor(0))"
dbs.Execute strSQL, dbFailOnError

thanks
 
Is rsobligor a local recordset variable?

If so then it should be:
strSQL = "insert into Exception values (" & Me!obligor_Id & "," &
rsobligor(0) & ")"

Cheers,
Jason Lepack
 
"didnt succeed" doesn't tell us much...

Assuming you want the value from rsobligor and not just a literal string),
try:

strSQL = "insert into Exception values (" & Me!obligor_Id & ", " &
rsobligor(0) & ")"

That assumes that Exception has only 2 fields in it, and that both of them
are numeric. If that's not the case, post back with details of the Exception
table.
 

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