Re: Problem updating memo field with string data from form
- From: Bob Quintal <rquintal@xxxxxxxxxxxxx>
- Date: 16 Jul 2007 20:32:59 GMT
sara <saraqpost@xxxxxxxxx> wrote in
news:1184599230.171623.54830@xxxxxxxxxxxxxxxxxxxxxxxxxxx:
Bob -
Thanks for the response.
I did what you said and still get the "type Mismatch" error.
Im just wondering if the syntax of the Update section of the SQL
is wrong but throwing up the wrong message.
anyway, to debug this, first put some additional formatting into
the SQL statement
strSQL = "UPDATE tblInteractionHistory " & vbNewLine _
& "SET tblInteractionHistory.Notes = " & vbNewLine _
& strPresProblem & vbNewLine _
& " WHERE tblInteractionHistory.InteractionKey = " _
& lngInteractionKey & ";"
debug.print strSQL
Docmd.RunSQL strSQL
Run the code. Opem the immediate window {ctrl-G} key
Examine the actual sql that's being passed to the runSQL
statement. Maybe we can see the problem.
I still may be "working too hard" (I'm fairly inexperienced,
so I hear that rather often!), but let me explain what's
happening on this one.
[snipped]
Make sense? (This organization is so amazing - providing
services for people many would soon forget or wish would go
away, that I am trying to do everything I can so that their
money goes where it's needed most).
Long explanation! Many thanks -
Sara
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- References:
- Prev by Date: Create DSN-Less connection to SQL 2005 with DAO
- Next by Date: Linking a large database
- Previous by thread: Re: Problem updating memo field with string data from form
- Next by thread: Re: Problem updating memo field with string data from form
- Index(es):
Relevant Pages
|
Loading