Dale, sometimes VBA highlights the wrong part of the line. Could the error
be elsewhere on that line?
A decompile might help:
http://allenbrowne.com/recover.html
The undocumented SaveAsText / LoadFromText is outlined here:
http://allenbrowne.com/ser-47.html#SaveAsText
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Dale_Fye via AccessMonster.com" <u43991@uwe> wrote in message
news:86e4fb14673db@uwe...
> I've recently started using Office 2007.
>
> I have a 2003 database that I've been modifying in 2003, and up until this
> morning everything was working well. Then I tried to compile the db and
> got
> the message above.
>
> The code it was highlighting was a reference to a control on one of the
> forms,
> so I deleted the row of code and redid it, using intellisense to identify
> the
> control name. I'm still getting the error. When I remark that line out,
> it
> highlights a similar line, and on, and on.
>
> The form still works, as does the code behind it when I make changes, but
> I
> keep getting these compile errors. In 2003 there was an undocumented way
> to
> export the form definition to a text file, and then reimport it. Does
> that
> still exist in 2007? If so, how do I do it?
>
> --
> HTH
>
> Dale Fye