It pretty hard to guess what's wrong considering you offered no details.
You need to describe what you are doing, the snippet of code involved, which
line of code that Access highlighted as erroneous, error number if possible
before anyone can guess what went wrong.