D
Debbiedo
Working in MS Access 2003
I have one large table (Truck) that has at least four separate
delivery addresses per record.
(E.g. four fields, Deliver1, Delivery2, etc...)Also in this table are
text fields that have special instructions such as on what days these
addresses make deliveries. Theses days vary by address.
I need to separate out these addresses into a single record in a new
table (Location) and enter its delivery days. (Thus potentially, the
one record in the Truck table will result in 4 records in the Location
table)
I have the master form (TruckForm) designed so that the truck number,
delivery addresses, and special instructions are visible. I would like
the following capability: if the user clicks on Delivery1 button, it
opens up another form (LocationEntryForm), adds a new record, and
enters the current Truck.TruckNumber field into the current (or new)
Location.TruckNumber field and the current Truck.Delivery1 field into
the Location.Address field and displays in the LocationEntryForm. The
user then reads the special instructions for that delivery address and
determines which days the truck goes to that address and checks the
appropriate boxes in the LocationEntryForm. Once this delivery
location data is updated into the new table, the user refers back to
the truck form to transfer the next address. The user clicks on
Delivery2 button, which opens up the form (LocationEntryForm), adds a
new record, and enters the current Truck.TruckNumber field into the
current Location.TruckNumber field and the current Truck.Delivery2
field into the Location.Address field, etc... for all four Delivery
buttons.
My question is what is the code that I would use behind the delivery#
buttons to make the data transfer happen? Right now I just have a
macro running that opens up the LocationEntryForm and adds a new
record. I would like to increase these buttons's functionality by
being able to transfer the above data when clicked.
Any and all help is greatly appreciated.
Deb
I have one large table (Truck) that has at least four separate
delivery addresses per record.
(E.g. four fields, Deliver1, Delivery2, etc...)Also in this table are
text fields that have special instructions such as on what days these
addresses make deliveries. Theses days vary by address.
I need to separate out these addresses into a single record in a new
table (Location) and enter its delivery days. (Thus potentially, the
one record in the Truck table will result in 4 records in the Location
table)
I have the master form (TruckForm) designed so that the truck number,
delivery addresses, and special instructions are visible. I would like
the following capability: if the user clicks on Delivery1 button, it
opens up another form (LocationEntryForm), adds a new record, and
enters the current Truck.TruckNumber field into the current (or new)
Location.TruckNumber field and the current Truck.Delivery1 field into
the Location.Address field and displays in the LocationEntryForm. The
user then reads the special instructions for that delivery address and
determines which days the truck goes to that address and checks the
appropriate boxes in the LocationEntryForm. Once this delivery
location data is updated into the new table, the user refers back to
the truck form to transfer the next address. The user clicks on
Delivery2 button, which opens up the form (LocationEntryForm), adds a
new record, and enters the current Truck.TruckNumber field into the
current Location.TruckNumber field and the current Truck.Delivery2
field into the Location.Address field, etc... for all four Delivery
buttons.
My question is what is the code that I would use behind the delivery#
buttons to make the data transfer happen? Right now I just have a
macro running that opens up the LocationEntryForm and adds a new
record. I would like to increase these buttons's functionality by
being able to transfer the above data when clicked.
Any and all help is greatly appreciated.
Deb