Page 1 of 1

Query Add Table Greyed Out

Posted: Thu Sep 28, 2023 2:09 pm
by Synapsis
Hi
When I try to make a query when I select the first table and click "ADD" the table is added and the windows closes.
If I try to use F7 or Insert Add Table the option is greyed out.
To put it short I can not select multiple tables for my query. :crazy:
I reinstalled all over again but same problem.
Thaks for any help

Re: Query Add Table Greyed Out

Posted: Thu Sep 28, 2023 2:42 pm
by FJCC
What is the source of your data? Is it a spreadsheet or a table in an embedded HSLQ database or something else?

Re: Query Add Table Greyed Out

Posted: Thu Sep 28, 2023 2:47 pm
by Synapsis
Sorry I left out my source they are dbf from FoxPro. So I tried creating a new table inside of dbase but still the same problem, after selecting the table then click add the window closes and I can not add or select another table.

Just wanted to add that I can do queries on the dbf file without any problems but only at a time.

Re: Query Add Table Greyed Out

Posted: Thu Sep 28, 2023 3:18 pm
by Synapsis
OK just tried a new dbase and created two tables and it works. So it has something to do with the FoxPro dbf files.

Re: Query Add Table Greyed Out

Posted: Thu Sep 28, 2023 4:06 pm
by FJCC
Do the tables that don't work have a primary key?

Re: Query Add Table Greyed Out

Posted: Thu Sep 28, 2023 4:51 pm
by Synapsis
I'm not sure here is an image of Table Info.

Re: Query Add Table Greyed Out

Posted: Thu Sep 28, 2023 5:31 pm
by FJCC
I can't tell for sure from that image since I'm totally unfamiliar with that interface. The grey Indexed box makes me suspect there is not a primary key, since a primary key would make a Unique index. From Base, if you click the Tables icon in the leftmost column, right click on the table and select Edit, is there a small yellow key icon just to the left of any of the Field Names?

Re: Query Add Table Greyed Out

Posted: Fri Sep 29, 2023 7:20 am
by Synapsis
Hi and thanks for your help. No when I edit a table there is no yellow icon just the green triangle for the row selected.
There are fields IDAUT which are [Interger] which could be the key.
So you think that not having a key could be the problem?

When I try using the wizard after adding the fields from two different tables I get this message.

Re: Query Add Table Greyed Out

Posted: Fri Sep 29, 2023 2:42 pm
by Villeroy
The dBase driver of LibreOffice does not support relations. However, it is possible to edit related data by means of forms and subforms. You may try a 3rd-party driver via ODBC.

Re: Query Add Table Greyed Out

Posted: Fri Sep 29, 2023 3:00 pm
by Synapsis
Thanks Villeroy I will try via ODBC or forms . :super: