-
WSbobw
AskWoody LoungerAfter upgrading Office 2000 to SP-3 on my system a number of Access 2000 Runtime applications (using MDE files generated using Access 2000 SR-1) stop working. When the applications start I get the message “The expression you entered has a function name that ‘appname’ can’t find.” where ‘appname’ is the name of the application.
If I recreate the MDE using Access 2000 at SP-3 level then in works OK on systems that have been upgraded to SP-3 but not on systems that are still on SR-1! I get the same message on systems with SR-1 when I try to use a MDE generated on SP-3.
All of these applications use the same startup processes which consist of an “autoexec” macro that includes a “basSetEnvironment()=0” condition function with a “Quit” action in the first line of the macro. This is so if the environment can’t be set up the application terminates however it appears that the system can’t find the function if the MDE and the Access Runtime modules are not at the same version (SR-1 or SP-3). I have never tried this with SP-2 so I don’t know if the same problem exists with it.
Anyone else having this problem and is there a solution? Makes it very difficult if users can upgrade to SP-3 and break Access runtime applications and I can’t upgrade without potentially breaking the application or forcing users to upgrade to SP-3.
Any ideas?
*** Expansion on problem added 30/01/2003 ***
Exact message I get is: “The expression you entered has a function name that xxxxx can’t find.” where xxxxx is the name of the application.
Problem environment #1 – Access 2000 Runtime only at SR-1 level with development system where MDE files are created running Access 2000 (as part of Office Developer) at SP3.
Problem environment #2 – Access 2000 (as part of Office Developer) at SP3 with development system where MDE files are created running Access 2000 (as part of Office Developer) at SR-1.
Problem environment #3 – Access 2000 (as part of Office Developer or Professional) at SR-1 with development system where MDE files are created running Access 2000 (as part of Office Developer) at SP3.Don’t have any Runtime only systems at SP3 as I was not going to implement it until all systems tested ok. Even then it has to be a gradual implementation so I will have a mix of SR-1 and SP3 machines for a while.
Autoexec macro looks like this: Line 1 Condition: basSetEnvironment()=0 Action: quit
Line 2 Condition: (none) Action: Openform XXXX (to open the main form)If the basSelEnvironment option returns 0 (false meaning it didn’t work) then the application quits.
The basSetEnvironment function is as follows (plus a bunch of declares, etc in the same module):
Public Function basSetEnvironment()
‘ This function sets the Microsoft Access Environment OptionsConst DB_Text As Long = 10
Dim lintLockCount As Integer
Dim lintResp As Integer
Dim lintI As Integer
Dim lstrAppIcon As StringDim lstrProc As String
lstrProc = “basSetEnvironment()”basSetEnvironment = False
On Error GoTo vbErrorRoutine
Re1:
lintResp = basSaveOptions()lintI = basAddAppProperty(“AppTitle”, DB_Text, gstrToolName)
lstrAppIcon = Application.CurrentProject.Path & “” & gstrAppIcon
lintI = basAddAppProperty(“AppIcon”, DB_Text, lstrAppIcon)
Application.RefreshTitleBargstrSystemDateFormat = basGetSystemDateFormat()
If LCase$(gstrSystemDateFormat) “dd/MM/yyyy” Then
lintResp = basSetSystemDateFormat(“dd/MM/yyyy”)
End IfgstrTemplateFileName = Application.CurrentProject.Path & “TEMPLATE.HTML”
basSetEnvironment = True
ExitFunction:
Exit FunctionvbErrorRoutine:
If Err = 2740 _
Or Err = 2800 _
Or Err = 3006 _
Or Err = 3008 _
Or Err = 3046 _
Or Err = 3158 _
Or (Err >= 3186 And Err 1 Then
lintResp = MsgBox(gstrCompanyID & ” ” & gstrToolName & ” is unable to Login due to a Lock Conflict.(Hint: Cancelling will exit to Windows)”, vbExclamation + vbRetryCancel, “Login table Locked”)
If lintResp = vbCancel Then
Resume ExitFunction
End If
End If
DBEngine.Idle DB_FREELOCKS
Resume Re1
Else
MsgBox gstrCompanyID & ” ” & gstrToolName & ” experienced the following Error: ” & Error$ & ” in procedure ” & lstrProc, vbCritical, “Application Error !”
End If
Resume ExitFunction
End Function -
WSbobw
AskWoody LoungerI would suggest this: Open the document, to to Edit and then Replace. I would put “.space” in the first box and “.space space” in the replace with box. You could also do just the reverse.
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Multiple Partitions?
by
CWBillow
12 minutes ago -
World Passkey Day 2025
by
Alex5723
2 hours, 12 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
14 hours, 49 minutes ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 hours, 26 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
19 hours, 22 minutes ago -
Win11 24H4 Slow!
by
Bob Bible
19 hours, 33 minutes ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
16 hours, 44 minutes ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
21 hours, 44 minutes ago -
‘Minority Report’ coming to NYC
by
Alex5723
18 hours, 3 minutes ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
1 day, 6 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
1 day, 5 hours ago -
How do I migrate Password Managers
by
Rush2112
13 hours, 39 minutes ago -
Orb : how fast is my Internet connection
by
Alex5723
15 hours, 28 minutes ago -
Solid color background slows Windows 7 login
by
Alex5723
1 day, 18 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
1 day, 16 hours ago -
Security fixes for Firefox
by
Susan Bradley
17 hours, 4 minutes ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
2 days, 4 hours ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
2 days, 13 hours ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
2 days, 4 hours ago -
Return of the brain dead FF sidebar
by
EricB
1 day, 16 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
19 hours, 7 minutes ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
15 hours, 32 minutes ago -
The local account tax
by
Susan Bradley
1 day, 17 hours ago -
Recall is back with KB5055627(OS Build 26100.3915) Preview
by
Alex5723
3 days, 2 hours ago -
Digital TV Antenna Recommendation
by
Win7and10
2 days, 19 hours ago -
Server 2019 Domain Controllers broken by updates
by
MP Support
3 days, 14 hours ago -
Google won’t remove 3rd party cookies in Chrome as promised
by
Alex5723
3 days, 16 hours ago -
Microsoft Manager Says macOS Is Better Than Windows 11
by
Alex5723
3 days, 19 hours ago -
Outlook (NEW) Getting really Pushy
by
RetiredGeek
2 days, 22 hours ago -
Steps to take before updating to 24H2
by
Susan Bradley
19 hours, 59 minutes ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.