Self Join Table Form Development
The field in the table are:
strID (Primary Key)
I think it will require a two form approach, one to create the employee and one to assign the boss. But I want the boss to be a combo box with only employees that have been created.
Thank you for taking the time to report an issue.
What's wrong... Please write below.
I can force an entry into each table - but that seems a bit crude (I.e add a record for every new entry in my main table into the 10 child tables - but this seems to be a waste - I only want to join tables when there is info in them - when I am doing this I can join two tables fine - but adding another one where there is no data FK seems to throw it. I will have about 10-12 tables to join.
I have a left join with criteria on the joining field. The problem is when the tables join on that field, some of the 1st tables rows are being removed by the where clause. I think what's happening is the join is putting the tables together, then removing rows based off of the criteria.
What I would like is the where clause to remove rows from table 2 first, then do the join with table 1 so ALL rows from table one remain.
RootCause, SubCatA, SubCatB
RootCause2, SubCat2A, SubCat2B
RootCause3, SubCat3A, SubCat3B
They all contain similar data. In the form, chocies for sub cat is populated based on the root cause selection
Employees - primary key empid-autonumber
Products -primary key itemnumber-text
and I have a join table called "transactions" - I use foreigh key for this table.
I created a form, using query builder to bring all records from this two tables into a form but is repeating information. Do I have to filled out "transaction table"
Table 1 - contains a whole range of names
Table 2 - contains ONLY some of the names ON TABLE 1
I created an inner join between the names on both of these table as I need the amounts from tble 1 with the names of table 2
Is it possible to also get a list of names and amounts from table 1 which DO NOT APPEAR IN TABLE 2
this was code used to find the similar names on tbl 2 with amounts from tbl1
SELECT tbl2name, tbl1Amount
FROM list2 INNER JOIN list1 ON tbl2name = tbl1name;
The join works fine and returns the data to my form as expected.
I will summarize in the hope that this is an obvious problem. Please let me know if I need more detail.
Set rs = db.OpenRecordset("SELECT . ")
rs!Blah = frm!txtBlah
The problem is that when I select a value to update that exists in the "right" table, it creates a second entry in the "left" table and never updates the "right" table
I've done this before only catch is now I need to use a where clause which removes the non-matching rows.
Whenever I change the type of the join query from SELECT to MAKE-TABLE, all my SQL statement gets deleted