PC Review


Reply
Thread Tools Rate Thread

Compile errors in Access 2003

 
 
=?Utf-8?B?RW5uZXg=?=
Guest
Posts: n/a
 
      6th Feb 2005
A DB system developed in earlier versions of Access was most recently running
in Access 2000. After buying a new computer and upgrading to Office 2003,
most or all of my custom functions fail to compile. The symptoms are:

-- Form fields that call these functions show #Name? errors.

-- A form action that calls one of my functions fails with "There was
an error compiling this function. The Visual Basic module contains a syntax
error."

-- If I run a query that calls one of my functions, it fails with
"Complie error. in query expression '<FunctionName>()'."


In my attempts to isolate the problem, I ended up creating a new function
with the following code:

Function ttemp()
ttemp = 0
End Function

Then I created a new query with only the one field: "Expr1: ttemp()".
Running this yields: "Complie error. in query expression 'ttemp()'."

So it looks like I pretty much can't compile anything at all. Anyone know
what's going on? Thanks for any guidance you can offer.

Regards,
Marshall Burns
www.Ennex.com
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      6th Feb 2005
The first thing I'd recommend is checking your References collection.

Open any code module (or get into the VB Editor using F11). Select Tools |
References from the menu bar. Examine all of the selected references.

If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile, on the Debug menu), go
back in and reselect them.

If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)



"Ennex" <(E-Mail Removed)> wrote in message
news:51BCEEC1-3F0A-4826-B210-(E-Mail Removed)...
>A DB system developed in earlier versions of Access was most recently
>running
> in Access 2000. After buying a new computer and upgrading to Office 2003,
> most or all of my custom functions fail to compile. The symptoms are:
>
> -- Form fields that call these functions show #Name? errors.
>
> -- A form action that calls one of my functions fails with "There was
> an error compiling this function. The Visual Basic module contains a
> syntax
> error."
>
> -- If I run a query that calls one of my functions, it fails with
> "Complie error. in query expression '<FunctionName>()'."
>
>
> In my attempts to isolate the problem, I ended up creating a new function
> with the following code:
>
> Function ttemp()
> ttemp = 0
> End Function
>
> Then I created a new query with only the one field: "Expr1: ttemp()".
> Running this yields: "Complie error. in query expression 'ttemp()'."
>
> So it looks like I pretty much can't compile anything at all. Anyone know
> what's going on? Thanks for any guidance you can offer.
>
> Regards,
> Marshall Burns
> www.Ennex.com



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Avoiding compile errors caused by using different Access versions =?Utf-8?B?YmVhY2h5?= Microsoft Access 0 9th Mar 2006 10:44 PM
Compile errors in VS.Net 2003 - VB.Net solution Ravi Chaudhary Microsoft VB .NET 1 3rd Sep 2004 10:59 PM
Compile errors in VS.Net 2003 Ravi Chaudhary Microsoft Dot NET 1 1st Sep 2004 06:03 AM
Excel and Word 2003 VB compile errors ChasR Microsoft Excel Crashes 2 31st Dec 2003 11:41 AM
Compile errors when upgrading to VS.NET 2003 Ray Wampler Microsoft VB .NET 1 4th Sep 2003 12:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:58 PM.