On Fri, 17 Sep 2010 15:42:00 -0700 (PDT), gdaniels <(E-Mail Removed)>
wrote:
>
>Hi, need some help here. I'm getting an error that states: "Compile
>Error: Expected: (". The code was running OK, then I made some
>additions to it. I think the problem is syntax in the line "AND
>ASKMFTotal.[CompType]" & strComp & _. When I delete this line it
>compiles and runs fine. When I add it in again, I get the same
>compile error. Thanks for any help.
You need the blanks: it's giving you
AND ASKMFTotal.[CompType]LIKE *
and is getting confused. Try
> "AND ASKMFTotal.[CompType] " & strComp & _
> "AND ASKMFTotal.[HeatPd] " & strHeat & _
with a blank after the square bracket.
--
John W. Vinson [MVP]
Microsoft's replacements for these newsgroups:
http://social.msdn.microsoft.com/For...-US/accessdev/
http://social.answers.microsoft.com/.../en-US/addbuz/
and see also
http://www.utteraccess.com