User Profile
Collapse
-
Hi. Thanks for the help, however, the script seems to ignore any form of that code. I am not quite sure why. Any suggestions? -
Skipping over Linked tables
Hi. I have written a script that searches through every field in every table in a given database. It works fine in most databases, however, when I run it in a database with Linked tables, the script crashes when it reaches a Linked table and tried to search through it.
My code is written below.
...Code:Option Compare Database Sub MK5Search() GenerateFieldSizeInfo End Sub Sub
-
Perfect! Thank you very much. I played around with the code for a bit and I ended up combining my script with yours, and it works perfectly!Leave a comment:
-
This is a task given to me for my job. It is to find data sensitive to a certain location. The script will be able to be used on any database made in the future; henceforth, creating a script to search every field is the most efficient way to go about this.
After the script is fully functional on VBA, I plan to translate it into VB and have it read a given database which is inputted by the user....Leave a comment:
-
OK. I have added much to the Sub. My code now reads as:
...Code:Public Sub GenerateFieldSizeInfo() Dim cdb As database Dim oTable As TableDef Dim oField As field Dim rsTable As Recordset Dim strSQLTable As String Dim iMaxSize As Integer Dim iHeadroom As Integer Dim iFileNumber As Integer Dim strOutputFile As String Dim ddbLeave a comment:
-
Ah! The code makes sense to me, and I have DAO 3.6 installed and enabled.
I have attached the code to a button called cmdSearchTheTab les.
However, it says the IF statementis an invalid operation.Code:If fld.Value Like "*MK 5*" Then
I tried a few different syntax forms for the line, but it still returned the same error.
Am I missing something? Do I need to assign a text field to output...Leave a comment:
-
Searching entire database for string
Hi, I am not a computer programmer. I have been learning VBA along the way of making this script. I know Access and SQL.
I have a very large database with many tables and queries. My goal is to write a script or function that will search the entire database for a certain string (actually two strings).
I have tried using a series of queries and unioning them together but this is a very scrappy way of doing this. Perhaps...
No activity results to display
Show More
Leave a comment: