I am working on creating an Access database, with a form based on two tables. I have had no prior experience with Access until I began working on this project. I have three questions, in order of importance:
1. My two tables--Bank Account info & Master List--are joined in a one-to-one relationship by the field "Transaction Name." (Master List containing hte PK, Bank Account Info containing the FK.) I have the relationship set to enforce referential integrity, and to cascade update all modified and deleted records of the PK. I've made it an inner-join, including only those data where the transaction name is the same for both tables (though it may make more sense for me to include ALL those of Master List and only the matching ones from Bank Account?! Don't really know.)
With that background, my question: how do I make it so that the transaction name text field on my form not only saves to the Master List Table, but also saves to the Bank Account table, so that if no info is entered on the form whcih is linked to the Bank Account table, it will at least save the transaction name to both tables, and that way it will show up on the form the next time I open it! Currently the only way to have it save to both tables or to make it show up in the form once I close out of it is to enter data in the bank account fields--but my clients won't always be doing that on the first time that they enter data.
I tried an afterupdate macro of SetValue from the form field "Transaction Name" as the expression, and the item being "Tables![Bank Account Info]![Transaction Name]" but Access was unable to identify the field.
2. I know that each table can only contain 255 columns, but it is my understanding that the form is not limited to this. Now, whenever I try to add one more field to a table, it allows me to. However, when I then try to open the form, an error message pops up, telling me that it there are too many fields to open. This doesn't make sense to me since, while I've addeda new column to the table, I haven't added a new field to the form, with the new column as its control source. Perhaps this has something to do with the fact that the Record Source for my form is a query which contains both tables. I'm not even sure if that's the proper way to have a form be based off of two tables. But that's just a guess. In any case, I definitely need to be able to add more fields, so this is a serious problem.
>>>The SQL statement of my query, Conglomerate, which is the recordsource of my form is:
SELECT [Master List].*, [Bank Account Info].*
FROM [Master List] INNER JOIN [Bank Account Info] ON [Master List].[Transaction Name] = [Bank Account Info].[Transaction Name];
I tried compacting the database (several times, in fact), but that was absolutely no help.
3.Finally (and thanks for bearing wiht me), before I expanded into a second table, I had a combo box at the top of the page to find values based off of what they began to type in. This served as a really easy way for my clients to toggle between the hundreds of records without having to scroll through wiht their mouse wheel or do a Ctrl>F. However, since I've linked tables, I haven't been able to set up this combo box. Whenever I do, the list comes up in the combo box when I view it in form view, however whenever I select a record form the list, instead of taking me to that record an error message reading "Run-time error 3345: Unknown or Invalid Field Reference [MasteList.Transaction Name] pops up.
I'm very confused, very delayed, and in desparate need of help. Thanks to anyone who can shed some insight on my woes!
1. My two tables--Bank Account info & Master List--are joined in a one-to-one relationship by the field "Transaction Name." (Master List containing hte PK, Bank Account Info containing the FK.) I have the relationship set to enforce referential integrity, and to cascade update all modified and deleted records of the PK. I've made it an inner-join, including only those data where the transaction name is the same for both tables (though it may make more sense for me to include ALL those of Master List and only the matching ones from Bank Account?! Don't really know.)
With that background, my question: how do I make it so that the transaction name text field on my form not only saves to the Master List Table, but also saves to the Bank Account table, so that if no info is entered on the form whcih is linked to the Bank Account table, it will at least save the transaction name to both tables, and that way it will show up on the form the next time I open it! Currently the only way to have it save to both tables or to make it show up in the form once I close out of it is to enter data in the bank account fields--but my clients won't always be doing that on the first time that they enter data.
I tried an afterupdate macro of SetValue from the form field "Transaction Name" as the expression, and the item being "Tables![Bank Account Info]![Transaction Name]" but Access was unable to identify the field.
2. I know that each table can only contain 255 columns, but it is my understanding that the form is not limited to this. Now, whenever I try to add one more field to a table, it allows me to. However, when I then try to open the form, an error message pops up, telling me that it there are too many fields to open. This doesn't make sense to me since, while I've addeda new column to the table, I haven't added a new field to the form, with the new column as its control source. Perhaps this has something to do with the fact that the Record Source for my form is a query which contains both tables. I'm not even sure if that's the proper way to have a form be based off of two tables. But that's just a guess. In any case, I definitely need to be able to add more fields, so this is a serious problem.
>>>The SQL statement of my query, Conglomerate, which is the recordsource of my form is:
SELECT [Master List].*, [Bank Account Info].*
FROM [Master List] INNER JOIN [Bank Account Info] ON [Master List].[Transaction Name] = [Bank Account Info].[Transaction Name];
I tried compacting the database (several times, in fact), but that was absolutely no help.
3.Finally (and thanks for bearing wiht me), before I expanded into a second table, I had a combo box at the top of the page to find values based off of what they began to type in. This served as a really easy way for my clients to toggle between the hundreds of records without having to scroll through wiht their mouse wheel or do a Ctrl>F. However, since I've linked tables, I haven't been able to set up this combo box. Whenever I do, the list comes up in the combo box when I view it in form view, however whenever I select a record form the list, instead of taking me to that record an error message reading "Run-time error 3345: Unknown or Invalid Field Reference [MasteList.Transaction Name] pops up.
I'm very confused, very delayed, and in desparate need of help. Thanks to anyone who can shed some insight on my woes!