Based on what I believe was good advice, I created my database with something I don't fully understand and it is now coming back to haunt me.
I have two tables: tblGrantSum and tblCTrack. The primary key of each is an autogenerated number. Each table also has a Grant# field, which is the link between the tables. (This should be a one to one link, but I have had difficulty getting Access to report it as one-to-one.)
When tblCTrack was created, the Grant# field was shown as a lookup Combo Box with the following Row source:
SELECT DISTINCTROW [tblGrantSum].[GrantSumID#], [tblGrantSum].[Grant#] FROM [tblGrantSum];
First can someone explain exactly what this statement says?
Secondly, how do I best display the value of tblCTrack.DLCDGrant# field in a form? It always seems to look for or show the GrantSumID# instead of the Grant# value. I would like a button in the GrantSum form to either open the correct record or ask if the user wants to create a new record.
I think all of this would be simple if I had not used the combo box structure above, but . . . that would have led to other complications.
Any help appreciated.
Lloyd
I have two tables: tblGrantSum and tblCTrack. The primary key of each is an autogenerated number. Each table also has a Grant# field, which is the link between the tables. (This should be a one to one link, but I have had difficulty getting Access to report it as one-to-one.)
When tblCTrack was created, the Grant# field was shown as a lookup Combo Box with the following Row source:
SELECT DISTINCTROW [tblGrantSum].[GrantSumID#], [tblGrantSum].[Grant#] FROM [tblGrantSum];
First can someone explain exactly what this statement says?
Secondly, how do I best display the value of tblCTrack.DLCDGrant# field in a form? It always seems to look for or show the GrantSumID# instead of the Grant# value. I would like a button in the GrantSum form to either open the correct record or ask if the user wants to create a new record.
I think all of this would be simple if I had not used the combo box structure above, but . . . that would have led to other complications.
Any help appreciated.
Lloyd