Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8346181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:55:33+00:00 2026-06-09T06:55:33+00:00

We have a fairly large Oracle database that we are able to connect via

  • 0

We have a fairly large Oracle database that we are able to connect via Microsoft Access and ODBC with read-only access. We work with a front-end system that does not match the structure behind the scenes and often I need to query the system via Microsoft Access. The problem is that we are not provided any documentation as to structure and the structure needs serious attention. Searching for the field that I need is very time consuming.

With our front end, I’m able to view the values that I want to query, and I know the key fields, but I need to find the field that contains the known value.

If I have a record where I know the value of field “A”, and have the value of field “X”, is it possible to query field “X”?

Front end shows

Student ID: 12345678
Payments: 23456

Back end

TechID: 12345678
???: 23456

Can I query “???”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:55:36+00:00Added an answer on June 9, 2026 at 6:55 am

    You can do this by iterating over the collection of tables, and for each table, the collection of fields.

    Open Database
    Get all Tables
    For Each Table
       Get all Fields
       For Each Field
           If Field type is text ... and
           If Field size is not TOO Long ...
               Search for string
               If found, write to a results bucket
       Next
    Next
    

    Here is an example of code for cataloging tables (source here)

    Public Function GenerateDataDictionary(aDataDictionaryTable As String)
    '***       Usage: GenerateDataDictionary("MyDataDictionaryTable")
    '*** Extracts the information about the tables for the data dictionary 
    '*** and inserts it to a table named aDataDictionaryTable
    
        Dim tdf As TableDef, fldCur As Field, colTdf As TableDefs
        Dim rstDatadict As Recordset
        Dim i As Integer, j As Integer, k As Integer
        Set rstDatadict = CurrentDb.OpenRecordset(aDataDictionaryTable)
        Set colTdf = CurrentDb.TableDefs
    
        'Go through the database and get a tablename   
        For Each tdf In CurrentDb.TableDefs
        'Do what you want with the table names here.
        rstDatadict.AddNew
        rstDatadict.Update   
    rstDatadict.AddNew
        rstDatadict![Table] = tdf.NAME
        rstDatadict![Field] = "----------------------------"
        rstDatadict![Display] = "----------------------------"
        rstDatadict![Type] = ""
        rstDatadict.Update
        rstDatadict.AddNew
        rstDatadict![Table] = "Table Description:"
        For j = 0 To tdf.Properties.Count - 1
              If tdf.Properties(j).NAME = "Description" Then
                  rstDatadict![Field] = tdf.Properties(j).Value
              End If
        Next j
    
        rstDatadict.Update 
        rstDatadict.AddNew
        rstDatadict.Update
    
    For i = 0 To tdf.Fields.Count - 1
              Set fldCur = tdf.Fields(i)          
              rstDatadict.AddNew
              rstDatadict![Table] = tdf.NAME
              rstDatadict![Field] = fldCur.NAME
              rstDatadict![Size] = fldCur.Size
    
              Select Case fldCur.Type
                Case 1
                  FieldDataType = "Yes/No"
                Case 4
                  FieldDataType = "Number"
                Case 8
                  FieldDataType = "Date"
                Case 10
                  FieldDataType = "String"
                Case 11
                  FieldDataType = "OLE Object"
                Case 12
                  FieldDataType = "Memo"
                Case Else    ' Other values.
                  FieldDataType = fldCur.Type
              End Select
    
              rstDatadict![Type] = FieldDataType                                
                    For j = 0 To tdf.Fields(i).Properties.Count - 1
                        If fldCur.Properties(j).NAME = "Description" Then
                            rstDatadict![DESCRIPTION] = fldCur.Properties(j).Value
                        End If
    
                        If fldCur.Properties(j).NAME = "Caption" Then
                            rstDatadict![Display] = fldCur.Properties(j).Value
                        End If
    
                        If fldCur.Properties(j).NAME = "Rowsource" Then
                            rstDatadict![LookupSQL] = fldCur.Properties(j).Value
                        End If
                    Next j
    
                rstDatadict.Update
    
        Next i
        Debug.Print "  " & tdf.NAME
        Next tdf
    
    End Function
    

    You can catalog your findings in Access by making a table of field-names which joins to a table of table-names. Then your searches are based on the catalog instead of raw collections.

    I reverse-engineered the schema for MAS 90 (with JobOps add-in) this way. There’s no map, but I had a read-only ODBC connection which I used in precisely the way you propose. The purchasing accountant would give me a distinctive Product Number and I’d run it through this comprehensive engine. Over time I succeeded in distilling 700 tables comprising 18k fields down to 20 tables and a few hundred fields. That allowed us to export our data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly large PHP codebase (10k files) that I work with using
I have a fairly large work project that uses pygtk for the GUI and
I have a fairly large webapp that I run on a Media Temple server.
I have a fairly large model and I want to retrieve only a select
I have a fairly large application that uses WPF for its user interface. I
I have a fairly large SQL Server database; I'd like to pull 4 tables
I have a fairly large Indesign file with a text field that needs to
I have several fairly large XML files that represent data exported from a system
I have fairly large C++ library with several sub-libraries that support it, and I
I have a fairly large CRUD WinForm app that has numerous objects. Person, Enrollment,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.