thebatfink
Registered User.
- Local time
- Today, 18:55
- Joined
- Oct 2, 2008
- Messages
- 33
Ok.. So this is a form I am using for inputting new records.
We have 3 main tables that are being updated from this form (I will simplfy this as much as possible):
Table1.Product (PK - Text)
Table1.ProductDetail1
Table1.ProductDetail2
Table2.Process (PK - Text)
Table2.ProcessDetail1
Table2.ProcessDetail2
Table3.QualityPK (PK - Autonumber)
Table3.Quality
Table3.QualityDetail1
Table3.QualityDetail2
Fields - Table1.Product (PK - Text) + Table2.Process (PK - Text) + Table3.Quality - all contain exactly the same value for each record.
No tables have any relationships defined at the table level.
Now before you freak out and tell me that breaks every rule of design and doesn't even seem logical in the slightest.. I know
but I have inherited this and whilst the roadmap is to rebuild from scratch, I can not invest the time into it right now. It simply isn't my choice to make. I have to try and work around this issue as is if possible.
On my form I have a tab control. Each of the three tables above, has its fields input on a single tab each.
The RecordSource for the form -
Select
[Table1].*, [Table2].[Process], [Table2].[ProcessDetail1], [Table2].[ProcessDetail2], [Table3].[Quality], [Table3].[QualityDetail1], [Table3].[QualityDetail2]
FROM
([Table1]
LEFT JOIN
[Table2] ON [Table1].[Product]=[Table2].[Process])
LEFT JOIN
[Table3] ON [Table1].[Product]=[Table3].[Quality]
;
So my issue.. out of the three fields which the joins are made on, I can not type into the fields [Table1].[Product] or [Table3].[Quality]? I am forced to type into the field for [Table2].[Process] and then the other two fields on the form autopopulate with what is typed in.
What I am trying to make it do is allow me to type into [Table1].[Product] field on the form and its proving impossible!! I'm also now very curious to understand what is controlling this behaviour.
I have a similar form using different tables and its working the way I want (although you have to type the value into all three fields, not just one) and the SQL looks comparable. I've also tried to compare as many of the fields and forms property values as I can to see if theres some random setting different between these two forms and the also look identical.
So what is controlling this? Any help with a solution or a better understanding of this I would be forever grateful for!
Thanks!
We have 3 main tables that are being updated from this form (I will simplfy this as much as possible):
Table1.Product (PK - Text)
Table1.ProductDetail1
Table1.ProductDetail2
Table2.Process (PK - Text)
Table2.ProcessDetail1
Table2.ProcessDetail2
Table3.QualityPK (PK - Autonumber)
Table3.Quality
Table3.QualityDetail1
Table3.QualityDetail2
Fields - Table1.Product (PK - Text) + Table2.Process (PK - Text) + Table3.Quality - all contain exactly the same value for each record.
No tables have any relationships defined at the table level.
Now before you freak out and tell me that breaks every rule of design and doesn't even seem logical in the slightest.. I know

On my form I have a tab control. Each of the three tables above, has its fields input on a single tab each.
The RecordSource for the form -
Select
[Table1].*, [Table2].[Process], [Table2].[ProcessDetail1], [Table2].[ProcessDetail2], [Table3].[Quality], [Table3].[QualityDetail1], [Table3].[QualityDetail2]
FROM
([Table1]
LEFT JOIN
[Table2] ON [Table1].[Product]=[Table2].[Process])
LEFT JOIN
[Table3] ON [Table1].[Product]=[Table3].[Quality]
;
So my issue.. out of the three fields which the joins are made on, I can not type into the fields [Table1].[Product] or [Table3].[Quality]? I am forced to type into the field for [Table2].[Process] and then the other two fields on the form autopopulate with what is typed in.
What I am trying to make it do is allow me to type into [Table1].[Product] field on the form and its proving impossible!! I'm also now very curious to understand what is controlling this behaviour.
I have a similar form using different tables and its working the way I want (although you have to type the value into all three fields, not just one) and the SQL looks comparable. I've also tried to compare as many of the fields and forms property values as I can to see if theres some random setting different between these two forms and the also look identical.
So what is controlling this? Any help with a solution or a better understanding of this I would be forever grateful for!
Thanks!