[Solved] Unable to see underlying table name in a base view

Discuss the database features
Post Reply
cminarik
Posts: 3
Joined: Wed May 03, 2023 11:22 am

[Solved] Unable to see underlying table name in a base view

Post by cminarik »

I created a base view and added a couple of column names from a table.

When I go back to Edit the view, the column names show up, but the underlying table name does not.

How do I see the name of the underlying table in a base view?

TIA.

Chuck
Last edited by RoryOF on Fri May 05, 2023 9:32 am, edited 2 times in total.
Reason: Added green tick [RoryOF, Moderator]
Open Office 4.1.14 / Windows 10
UnklDonald418
Volunteer
Posts: 1549
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Unable to see underlying table name in a base view

Post by UnklDonald418 »

Because Views are stored in the underlying database instead of the Base front end, it is a good idea to retain a copy of the query used to create the View.

If you have an Embedded Base database, right click on the View and select Edit in SQL View to see the query.

If you have a JDBC connection run the following query to display the view definition(s)

Code: Select all

 Select
       INFORMATION_SCHEMA.VIEWS.TABLE_NAME, 
       INFORMATION_SCHEMA.VIEWS.VIEW_DEFINITION
    From INFORMATION_SCHEMA.VIEWS
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
cminarik
Posts: 3
Joined: Wed May 03, 2023 11:22 am

Re: Unable to see underlying table name in a base view

Post by cminarik »

Thanks for your reply. I guess I should have provided more information.

I am trying to open an MS Access database...(*.accdb). The views are Access queries.

I tried to connect as "Microsoft Access 2007" and ODBC.

There is no option for "Edit in SQL view"...and when I try to run your query, I get the following error message:

Could not find file 'C:\Program Files (x86)\OpenOffice 4\program\INFORMATION_SCHEMA.mdb'.

Can I not see the underlying tables for an MS Access db?

TIA...Chuck
Open Office 4.1.14 / Windows 10
UnklDonald418
Volunteer
Posts: 1549
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: Unable to see underlying table name in a base view

Post by UnklDonald418 »

Base is a relatively small program that can be used as a basic front end for numerous database engines but it lacks many of the bells and whistles of large commercial front ends like MSAccess
Using Base with an Access connection you can see the tables, their fields and data but Base doesn't know anything about the query behind a View. A View has the appearance of a table to Base which is why the Editor can only see the list of fields.
It comes as no surprise that Microsoft uses a different method to display the Schema, so you will probably need to get the view definition using Access.
https://learn.microsoft.com/en-us/sql/r ... rver-ver16
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.14 & LibreOffice 7.6.2.1 (x86_64) - Windows 10 Professional- Windows 11
cminarik
Posts: 3
Joined: Wed May 03, 2023 11:22 am

Re: SOLVED: Unable to see underlying table name in a base view

Post by cminarik »

Thanks...Chuck
Open Office 4.1.14 / Windows 10
Post Reply