473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Error 3085: Undefined function in expression

1
Hello

I have a function called fCompareStrings

Expand|Select|Wrap|Line Numbers
  1. Public Function fCompareStrings(strSource As String, strSearch As String) As Single
  2. Dim intCounter As Integer
  3. Dim strTest As String
  4. Dim intScore As Integer
  5. Const conWORD_LENGTH As Integer = 3
  6.  
  7. For intCounter = 1 To Len(strSource) - conWORD_LENGTH
  8.   strTest = Mid(strSource, intCounter, conWORD_LENGTH)
  9.     If InStr(1, strSearch, strTest, vbTextCompare) > 0 Then
  10.       intScore = intScore + 1
  11.     End If
  12. Next
  13.  
  14. fCompareStrings = 100 * (intScore / (Len(strSource) - conWORD_LENGTH))
  15. End Function
  16.  
and I am trying to execute a query

Expand|Select|Wrap|Line Numbers
  1. s1 = "UPDATE Produit, Presentation, tbl_SS SET Presentation.Secu = 1 WHERE Presentation.[No Enregistrement] = tbl_SS.NoR AND fCompareStrings(Produit.[Nom Commercial],tbl_SS.[NOM]) > 50;"
  2. CurrentDb().Execute s1
After all, i get the error 3085: Undefined function 'fCompareStrings' in expression

I have checked the references in tools in visual basic editor and couldnt find any 'Missing' field to uncheck

Any help ?
Jul 13 '16 #1
0 1253

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ronald W. Roberts | last post by:
I'm not sure where this routine came from, but here is the problem. On certian computers this error occurs, but it does not on others. The error is: "Undefined Function "DIR" in expression". ...
9
by: sam.s.kong | last post by:
Hello! I have a very basic question. a.c: <code> #include <stdio.h> main()
3
by: MLH | last post by:
I got this error twice in 72-hours. Each time, a different global procedure was not found. One was being used in an SQL statement and the other in a Set stmt in DAO routine. Both FNs, of...
3
patjones
by: patjones | last post by:
Good morning all: In what seems like an ongoing saga to make the DSum function do what I need it to, I am now having trouble with a user-defined function in my VBA module. Here's the offending...
6
by: blackdogharry | last post by:
Hi, I am a novice VBA user. My access version is 2007 on Windows XP PC. I need to create a query that will take pre-existing text values of the B_status field (such as "Received_Emailed",...
2
by: CCHDGeek | last post by:
I created a database with a separate front-end that is installed on each computer and linked to a back-end server. After installing the file on several computers, I realized I was getting this...
0
by: Sebastian | last post by:
Hello I develop my applications in Access 2002. My development system is running Windows XP SP2 and I have Microsoft Office XP Developer. Microsoft Office XP is at SP3. I used Inno Setup (great...
2
by: rmmahara | last post by:
Hi Folks, I've been reading these forums for a while and now I'm in desperate need of help, so I thought I'd post! Background: I'm creating a Service Dashboard to track my team's adherence...
4
by: William Hamilton | last post by:
Hi all, Hoping someone might be able to point me in the right direction with getting the code below to work properly. Effectively, the code: Requerys the listbox in lstPrintCheckedStaff...
1
by: titli | last post by:
Hi Group, I get error in this line :-- Set db=Currentdb Set qdfToRunFiles=db.QueryDefs("qryToRunFiles") With qryToRunFiles .Parameters("dCOB").value=dCOB-----at this line Set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.