473,322 Members | 1,523 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,322 software developers and data experts.

My search doesn't contain the option to search complete project Access VBA

489 256MB
This just started Yesterday, I want to search for a variable in the complete project but the check box isn't there any more. The check boxes are not on any of those options. I also was going to remove the password while I copy some form from one program to another but the password would not let me blank it out, I keep getting the message invalid password. I'm not sure what I did but I could sure use some help.
Thanks.
Nov 4 '17 #1

✓ answered by twinnyfo

Hey Tom,

Just ran across this question of yours. It appears you have two separate questions. I may have some insight into the first, but not the second.

I am not exactly sure where, in your project you are searching, but I do have some useful functions that search the objects within a project. For example, the following searches all your modules for a particular search word:

Expand|Select|Wrap|Line Numbers
  1. Public Sub SearchModules(ByVal strSearch As String)
  2. On Error GoTo EH
  3.     Dim objComp     As Object
  4.     Dim strMsg      As String
  5.     Dim strModList  As String
  6.  
  7.     strModList = vbNullString
  8.  
  9.     For Each objComp In Application.VBE.ActiveVBProject.VBComponents
  10.         If objComp.CodeModule.Find(strSearch, 1, 1, -1, -1) = True Then
  11.             strModList = strModList & ";" & vbCrLf & Chr(9) & objComp.Name
  12.         End If
  13.     Next objComp
  14.  
  15.     strMsg = "Text '" & strSearch & "' found in "
  16.     If Len(strModList) > 0 Then
  17.         strMsg = strMsg & "modules:" & vbCrLf & Mid(strModList, 4)
  18.     Else
  19.         strMsg = strMsg & "no modules"
  20.     End If
  21.  
  22.     Debug.Print strMsg
  23.  
  24.     Exit Sub
  25. EH:
  26.     Resume Next
  27. End Sub
Not sure if this is the type of thing you were looking for, or something else.

Hope this hepps.

1 1569
twinnyfo
3,653 Expert Mod 2GB
Hey Tom,

Just ran across this question of yours. It appears you have two separate questions. I may have some insight into the first, but not the second.

I am not exactly sure where, in your project you are searching, but I do have some useful functions that search the objects within a project. For example, the following searches all your modules for a particular search word:

Expand|Select|Wrap|Line Numbers
  1. Public Sub SearchModules(ByVal strSearch As String)
  2. On Error GoTo EH
  3.     Dim objComp     As Object
  4.     Dim strMsg      As String
  5.     Dim strModList  As String
  6.  
  7.     strModList = vbNullString
  8.  
  9.     For Each objComp In Application.VBE.ActiveVBProject.VBComponents
  10.         If objComp.CodeModule.Find(strSearch, 1, 1, -1, -1) = True Then
  11.             strModList = strModList & ";" & vbCrLf & Chr(9) & objComp.Name
  12.         End If
  13.     Next objComp
  14.  
  15.     strMsg = "Text '" & strSearch & "' found in "
  16.     If Len(strModList) > 0 Then
  17.         strMsg = strMsg & "modules:" & vbCrLf & Mid(strModList, 4)
  18.     Else
  19.         strMsg = strMsg & "no modules"
  20.     End If
  21.  
  22.     Debug.Print strMsg
  23.  
  24.     Exit Sub
  25. EH:
  26.     Resume Next
  27. End Sub
Not sure if this is the type of thing you were looking for, or something else.

Hope this hepps.
Feb 14 '18 #2

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

Similar topics

2
by: John Spiegel | last post by:
I probably asked this same question when I installed VS.NET on my last machine... What setting(s) do I need to change in order to open a web project? Currently I get "http/1.1 403 access...
3
by: gyap88 | last post by:
My search engine in visual basic 2005 has 4 textbox for users to input values, named textbox1,textbox2,textbox3,textbox4. I have a string assigned to each of the textbox named...
3
by: Soulless | last post by:
Is there a conveninent place to go to search the entire project/ solution for specific occurances of text. for instance, if I want to find where all occurences of "counter" was in my project, is...
3
by: =?Utf-8?B?S2F5xLFoYW4=?= | last post by:
In my project,i added datagridview to my form , i transfered my table to datagridview and added multiple rows and when i called dataadapther.update ,,result is ok. But when i tried it for the...
4
by: suckyboy | last post by:
Hi... I have a small problem here. I did a database on my School computer with Access 2007. However, when I use the database on my Home computer with Access 2007 there. The search function doesnt...
1
by: Arthurr | last post by:
I have an Access database linked from SQL server and I need to create a search engine using VBA. I managed to create search engine for varchar items, but I cant make it to search numbers as well....
0
by: Alex Corleone | last post by:
Hi all, I have a question, after long days of search now I have to as that question... I want a complete search form for my table into a form. Like there should be a form where I could enter...
3
by: Sir G | last post by:
Hi all, I recently started using eclipse indigo with CDT 8.0 to edit a C++ project. However, whenever i try to build the project it complains that includes cannot be found. The src folder has many...
1
by: superblade | last post by:
Hi, Wonder if someone can help me? I have two tables, one is a project table and one is an address table, in addition I have a project form bound to the project table. I've created a lookup...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.