Click here to Skip to main content
15,898,222 members
Home / Discussions / Database
   

Database

 
QuestionHow do I get all the Ids from my last insert in Mysql? Pin
karengsh27-Jun-17 18:05
karengsh27-Jun-17 18:05 
AnswerRe: How do I get all the Ids from my last insert in Mysql? Pin
Richard MacCutchan27-Jun-17 19:54
mveRichard MacCutchan27-Jun-17 19:54 
GeneralRe: How do I get all the Ids from my last insert in Mysql? Pin
karengsh27-Jun-17 21:07
karengsh27-Jun-17 21:07 
GeneralRe: How do I get all the Ids from my last insert in Mysql? Pin
Richard MacCutchan28-Jun-17 8:51
mveRichard MacCutchan28-Jun-17 8:51 
AnswerRe: How do I get all the Ids from my last insert in Mysql? Pin
Richard Deeming27-Jun-17 23:51
mveRichard Deeming27-Jun-17 23:51 
GeneralRe: How do I get all the Ids from my last insert in Mysql? Pin
karengsh28-Jun-17 0:36
karengsh28-Jun-17 0:36 
AnswerRe: How do I get all the Ids from my last insert in Mysql? Pin
ZurdoDev28-Jun-17 9:48
professionalZurdoDev28-Jun-17 9:48 
QuestionAccess ComboBox Query Question Pin
Bassam Abdul-Baki27-Jun-17 14:16
professionalBassam Abdul-Baki27-Jun-17 14:16 
It's been a while since I've used Access.

I have an Access database with three tables summarized as follows.

Table1
- ID (Primary Key)
- Title (Text)

Table2
- ID (Primary Key)
- Type (Table1.ID combobox lookup single select)
- Other_Fields

Table3
- ID (Primary Key)
- Type (Table1.ID combobox lookup single select)
- Data (Table2.Type combobox multiselect using a query)
- Other_Other_Fields

Without using a form, I would like the Data combobox in Table3 to display only the rows in Table2 where Table2.Type = Table3.Type (=Table1.ID). An inner join is what I'm using, but it's joined to Table1.
SELECT Table2.ID, Table2.Type, Table2.Other_Fields
FROM Table2 INNER JOIN Table1 ON Table2.Type = Table1.ID
WHERE (Table2.Type=Table3.Type);

Here's the problem, according to most of the examples that I've 'oogled, this is done by using a form and requerying the data upon combo update. However, I'm trying to implement this in the table.

The problem that I'm seeing is that when I click on any of the Data fields in Table3, it uses the Type ID of the very first row in Table3. If I change that value of the first row's Type field, the table gets repopulated using this new value for all rows. However, if I click on the Home | Records | Refresh menu (not Refresh All), the row that is selected stays selected and the combobox gets populated with the correct data using that row's Type ID.

So my question is, is there a workaround for this without using a form or am I banging my head against a wall? Is this a "by-design feature" (aka bug)?

Thanks!

QuestionNeed to load bulk Data with some conditions Pin
indian14327-Jun-17 10:14
indian14327-Jun-17 10:14 
AnswerRe: Need to load bulk Data with some conditions Pin
Mycroft Holmes27-Jun-17 19:26
professionalMycroft Holmes27-Jun-17 19:26 
GeneralRe: Need to load bulk Data with some conditions Pin
indian14328-Jun-17 8:14
indian14328-Jun-17 8:14 
GeneralRe: Need to load bulk Data with some conditions Pin
indian14312-Jul-17 7:41
indian14312-Jul-17 7:41 
QuestionORDER BY issue with Interbase XE SQL Server Pin
User 1106097925-Jun-17 2:32
User 1106097925-Jun-17 2:32 
QuestionRe: ORDER BY issue with Interbase XE SQL Server Pin
Eddy Vluggen25-Jun-17 3:06
professionalEddy Vluggen25-Jun-17 3:06 
GeneralRe: ORDER BY issue with Interbase XE SQL Server Pin
User 1106097925-Jun-17 3:24
User 1106097925-Jun-17 3:24 
GeneralRe: ORDER BY issue with Interbase XE SQL Server Pin
Eddy Vluggen25-Jun-17 3:40
professionalEddy Vluggen25-Jun-17 3:40 
QuestionSQL: Split calendar week between a given two date time Pin
Number0523-Jun-17 3:29
Number0523-Jun-17 3:29 
AnswerRe: SQL: Split calendar week between a given two date time Pin
Richard Deeming23-Jun-17 6:18
mveRichard Deeming23-Jun-17 6:18 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number0526-Jun-17 22:06
Number0526-Jun-17 22:06 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number0527-Jun-17 5:10
Number0527-Jun-17 5:10 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Richard Deeming27-Jun-17 5:37
mveRichard Deeming27-Jun-17 5:37 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number0528-Jun-17 4:30
Number0528-Jun-17 4:30 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Richard Deeming28-Jun-17 7:46
mveRichard Deeming28-Jun-17 7:46 
GeneralRe: SQL: Split calendar week between a given two date time Pin
Number053-Jul-17 1:41
Number053-Jul-17 1:41 
QuestionBasic Entity Framework Question Pin
Kevin Marois21-Jun-17 7:54
professionalKevin Marois21-Jun-17 7:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.