Prev: Multiple (two) back-end MDB's.
Next: Future of Access
From: Frank on 13 May 2010 05:59 I have Table 1 with Field IDTable1 [autonumber] [and other fields] and Table 2 with Field IDTable2 [autonumber] and Field GRV set to text [and other Fields] Is the following posibble: Can I automatically generate a number that can be used in GRV field of Table 2 consisting out of a combination of IDTable1 and IDTable2 written as IDTable1/IDTable2 in the GV field of Table 2 I want this GRV number as a unique number identifying Table 1 and Table 2 Thanks for the help
From: Arvin Meyer [MVP] on 13 May 2010 09:06 You can, but shouldn't. All data in a table must identify the key. Foreign Keys, which are the keys from IDTable1 (in Table2) should be a separate field in table 2, and no field should be combined. Using Access's built in subform system, you automatically generate the linking value when you create the subform record. -- Arvin Meyer, MCP, MVP http://www.datastrat.com http://www.accessmvp.com http://www.mvps.org/access "Frank" <Frank(a)discussions.microsoft.com> wrote in message news:9897C5F2-47B6-4B9B-A784-5F1A8B0DB736(a)microsoft.com... > > I have Table 1 with Field IDTable1 [autonumber] [and other fields] and > Table > 2 with Field IDTable2 [autonumber] and Field GRV set to text [and other > Fields] > Is the following posibble: > Can I automatically generate a number that can be used in GRV field of > Table > 2 consisting out of a combination of IDTable1 and IDTable2 written as > IDTable1/IDTable2 in the GV field of Table 2 > > I want this GRV number as a unique number identifying Table 1 and Table 2 > > Thanks for the help >
From: Frank on 28 May 2010 10:59 Thanks Arvin We want to use the combination of teh two autonumbers in the two takles as a numbercombination to identiify the user [table1] and a item [table2] as unique to that user and item for futher reference I will remember your inpur in developing a new database Thnak for your time Frank "Arvin Meyer [MVP]" wrote: > You can, but shouldn't. All data in a table must identify the key. Foreign > Keys, which are the keys from IDTable1 (in Table2) should be a separate > field in table 2, and no field should be combined. > > Using Access's built in subform system, you automatically generate the > linking value when you create the subform record. > -- > Arvin Meyer, MCP, MVP > http://www.datastrat.com > http://www.accessmvp.com > http://www.mvps.org/access > > > "Frank" <Frank(a)discussions.microsoft.com> wrote in message > news:9897C5F2-47B6-4B9B-A784-5F1A8B0DB736(a)microsoft.com... > > > > I have Table 1 with Field IDTable1 [autonumber] [and other fields] and > > Table > > 2 with Field IDTable2 [autonumber] and Field GRV set to text [and other > > Fields] > > Is the following posibble: > > Can I automatically generate a number that can be used in GRV field of > > Table > > 2 consisting out of a combination of IDTable1 and IDTable2 written as > > IDTable1/IDTable2 in the GV field of Table 2 > > > > I want this GRV number as a unique number identifying Table 1 and Table 2 > > > > Thanks for the help > > > > > . >
|
Pages: 1 Prev: Multiple (two) back-end MDB's. Next: Future of Access |