How are ya daveinchicago . . .
The SQL of your post origination is right on, only I'd put a space where shown ...
Code:
[blue] RulesNotCrD[COLOR=black red] [/color](AccountName, Note)[/blue]
... for easy reading. Otherwise at 1st glance [blue]RulesNotCrD(AccountName, Note)[/blue] looks like a function ... although it should still work.
In any case I couldn't find anything wrong either. So I duplicated the table & fields and setup an [blue]append[/blue] query in query design view to simulate the sql. To my surprise when I went to [blue]SQL View[/blue], I found that brackets [] embraced the [blue]Note[/blue] field:
Code:
[blue]INSERT INTO RulesNotCrD ( AccountName, [COLOR=black Yellow][[/color]Note[COLOR=black Yellow]][/color] )[/blue]
Removing the brackets I received the same error you quoted earlier.
So I tried the same in your VBA SQL and ... Voila! ... works as expected:
Code:
[blue] SQL = "Insert Into RulesNotCrD (AccountName, [COLOR=black Yellow][[/color]Note[COLOR=black Yellow]][/color]) " & _
"Values ('" & Me.cboAcName & "','" & Me.Text18 & "');"[/blue]
Why this happens I can't say yet. One guess is that maybe [blue]Note[/blue] has been promoted to a reserved word in 2003 or greater.
In any event add the brackets [] an see if it makes the difference.
[blue]Your Thoughts? . . .[/blue]
See Ya! . . . . . .
Be sure to see faq219-2884 [blue]Worthy Reading![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Also faq181-2886 [blue]Worthy Reading![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)