txgeekgirl
Registered User.
- Local time
- Today, 09:07
- Joined
- Jul 31, 2008
- Messages
- 187
It actually inserts the AuditID with and without '" "' - but the Summary, without the '" "' errors something fierce. I changed the field type from Memo to text on the Tbl it is inserting into - but that didn't matter. I didn't have "AS Name" and added them. I am sure it's something stupid.
OH - I also tried Me.AuditSummaryTxt instead of the forms call - that didn't help either.

Code:
mySql = "INSERT INTO [AuditSummarization]([AuditID], [AuditSummary])" + _
"SELECT " & sAuditID & " AS AuditID, '" & [Forms]![Update Findings]![AuditSummaryTxt] & "' AS AuditSummary ;"
DoCmd.SetWarnings (WarningsOff)
DoCmd.RunSQL mySql
MsgBox "added"
DoCmd.SetWarnings (WarningsOn)