M
mark r.
I have a customer table with primary key of TransactionID
and it has 255 fields. Each record represents a separate
sale, though customers have repeat sales. The
distinguishing characteristics between each sale is ID,
locationnumber,lastname, firstname, date-of-sale, date-of-
birth. I chose TransactionID to be the primary key to
keep things simple, because each transaction is unique.
Now there are many categories of fields which I could
place into another table if I understood how to make sure
that the other table had the exact transactionID as the
main customer table. Then I could join the to tables one-
to-one.
When the user initiates a new record in my main inpout
form, a tranasctionID is automatically generated. So If I
had a command button which opened a second form
to input data into this other category of fields:
1) how does that command button open a different table,
.............Docmd.Gotorecord-of-a-different-table
2) how can I make sure that transactionID in the second
table is automatically populated with the identical
transactionID from the main table, even if those fields
may be accessed on a different day than when the first
form was utilized by the user. I am imagining that i the
Afterupdate() event I could use the "set" command to make
table2.transactionID "get" table1.transactionID
and it has 255 fields. Each record represents a separate
sale, though customers have repeat sales. The
distinguishing characteristics between each sale is ID,
locationnumber,lastname, firstname, date-of-sale, date-of-
birth. I chose TransactionID to be the primary key to
keep things simple, because each transaction is unique.
Now there are many categories of fields which I could
place into another table if I understood how to make sure
that the other table had the exact transactionID as the
main customer table. Then I could join the to tables one-
to-one.
When the user initiates a new record in my main inpout
form, a tranasctionID is automatically generated. So If I
had a command button which opened a second form
to input data into this other category of fields:
1) how does that command button open a different table,
.............Docmd.Gotorecord-of-a-different-table
2) how can I make sure that transactionID in the second
table is automatically populated with the identical
transactionID from the main table, even if those fields
may be accessed on a different day than when the first
form was utilized by the user. I am imagining that i the
Afterupdate() event I could use the "set" command to make
table2.transactionID "get" table1.transactionID