![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I buy and sell stuff. I buy from small mom and pops and sell, usually, to one company. When I buy enough to fill a truck, I hire a truck to go to all the sellers' locations and pick it up, then they deliver it to the buyers location. I created a db to record the truck (carrier) information and the pick ups and deliveries (shippers/receivers). I have another section to record the bill to information, for the person/company that is the actual buyer, and another to record my commission. So, since any one of the shippers/receivers and bill to's can be, at some point in time, either a shipper/receiver or bill to, I have created 8 sections to record their information. Like this: ship/rec address city st zip phone commodity ...and I have replicated this 7 times (2 rows of 4), giving me a total of 8 sections in which to record each pick up and/or delivery. Here's the problem: I managed to get a value list based on a relationship with the address book to allow me to toggle it, select the name I need, and, after tabbing out, fill in the rest of the information in the above fields. BUT, when I select a different name to fill out in the other sections, it displays the address information from the first section. To make matters even worse, it overwrites information in the address book! Arggghhh!! So, I created 7 more of the above fields (address and so on) and appended each with a 2,3,4, etc through 8. That doesn't work either. : ( Another fella said I need to create 8 address book files, and have a script to "sync" them all each time a change is made. Now, I'm more lost than before. (as if that's possible) Any ideas? Anyone want to hold my hand and walk me through this one? Please? Thanks |
#3
| |||
| |||
|
|
I buy and sell stuff. I buy from small mom and pops and sell, usually, to one company. When I buy enough to fill a truck, I hire a truck to go to all the sellers' locations and pick it up, then they deliver it to the buyers location. I created a db to record the truck (carrier) information and the pick ups and deliveries (shippers/receivers). I have another section to record the bill to information, for the person/company that is the actual buyer, and another to record my commission. So, since any one of the shippers/receivers and bill to's can be, at some point in time, either a shipper/receiver or bill to, I have created 8 sections to record their information. Like this: ship/rec address city st zip phone commodity ...and I have replicated this 7 times (2 rows of 4), giving me a total of 8 sections in which to record each pick up and/or delivery. Here's the problem: I managed to get a value list based on a relationship with the address book to allow me to toggle it, select the name I need, and, after tabbing out, fill in the rest of the information in the above fields. BUT, when I select a different name to fill out in the other sections, it displays the address information from the first section. To make matters even worse, it overwrites information in the address book! Arggghhh!! So, I created 7 more of the above fields (address and so on) and appended each with a 2,3,4, etc through 8. That doesn't work either. : ( Another fella said I need to create 8 address book files, and have a script to "sync" them all each time a change is made. Now, I'm more lost than before. (as if that's possible) Any ideas? Anyone want to hold my hand and walk me through this one? Please? Thanks |
#4
| |||
| |||
|
|
In article <1182198300.658291.220220 (AT) q69g2000hsb (DOT) googlegroups.com>, Defender of Truth <pizamoto (AT) yahoo (DOT) com> wrote: I buy and sell stuff. I buy from small mom and pops and sell, usually, to one company. When I buy enough to fill a truck, I hire a truck to go to all the sellers' locations and pick it up, then they deliver it to the buyers location. I created a db to record the truck (carrier) information and the pick ups and deliveries (shippers/receivers). I have another section to record the bill to information, for the person/company that is the actual buyer, and another to record my commission. So, since any one of the shippers/receivers and bill to's can be, at some point in time, either a shipper/receiver or bill to, I have created 8 sections to record their information. Like this: ship/rec address city st zip phone commodity ...and I have replicated this 7 times (2 rows of 4), giving me a total of 8 sections in which to record each pick up and/or delivery. Here's the problem: I managed to get a value list based on a relationship with the address book to allow me to toggle it, select the name I need, and, after tabbing out, fill in the rest of the information in the above fields. BUT, when I select a different name to fill out in the other sections, it displays the address information from the first section. To make matters even worse, it overwrites information in the address book! Arggghhh!! So, I created 7 more of the above fields (address and so on) and appended each with a 2,3,4, etc through 8. That doesn't work either. : ( Another fella said I need to create 8 address book files, and have a script to "sync" them all each time a change is made. Now, I'm more lost than before. (as if that's possible) Any ideas? Anyone want to hold my hand and walk me through this one? Please? Thanks Firstly, you do NOT need "8 address book files" - that's simply ridiculous database design (imagine getting a change of address and having to go through all eight files to find the record). You probably don't even need three of them. It's a bit confusing what you're trying to achieve with this system and it sounds overly complicated. If by "replicated this 7 times" you mean you used Copy / Paste or Duplicate or dragged new Field boxes onto the layout to get a second version of the field on the layout, then they will all show the same information - it is the exact same field after all. When you created actual new fields (the ones with 2, 3, 4, etc. appended to the field name) then this still won't work because you're still using the same relationship based on the original field. You will need to also create seven extra relationships based on the new fields. For example, if the existing relationship uses Name, then you will need to create relationships based on Name2, Name3, Name4, etc. and then change the fields Address2, Address3, etc. to use the appropriate new relationship. BUT, having said that, you might be better off with a much simpler system: ONE file called "Items" that lists each item as a separate record. Each of those records can have fields for the item details: Item Name Item Description etc. and the three sets of fields for the peoples' details: Purchase: Date Bought Name BoughtFrom Address BoughtFrom etc. Carrier: Date Carried Carrier Name Carrier Address etc. Selling: Date Sold Name SoldTo Address SoldTo etc. If you then want to save the time entering the same address manually each time, then you could have a SECOND file "Address Book" that lists the contact details for all the people: Name Address Phone etc. You could have another field here that uses a normal typed-in Value List to display Checkboxes for "Seller", "Buyer" and "Carier" if you need to be bale to separate the records for mailouts or something. Using checkboxes means a record can be in the set for any combination of those values. You then enter all the contact details for people into this file. You will need to create an Address Book record for new people before using their name in the Items file. You can then create three relationships from the Items file to the Address Book file: rel_Purchase From Items to Address Book when Name BoughtFrom = Address Book::Name rel_Carrier From Items to Address Book when Carrier Name = Address Book::Name rel_Selling From Items to Address Book when Name SoldTo = Address Book::Name Now the three Address, Phone, etc. fields in the Items file can either be Calculation fields or normal Text fields which use an Auto-entry Calculation - it depends on whether you want a historical record where the address do not change OR whether you want the address, etc. details of old records to change when you change the Address Book file. If you want a historical record (ie. the details do not change when the Address Book record is changed), you will need to use normal Text fields using the Auto-enter by Calculation option. eg. Address BoughtFrom Text, Auto-enter by Calculation = If (IsEmpty(Name), "", rel_Purchase::Address) Carrier Address Text, Auto-enter by Calculation = If (IsEmpty(Name), "", rel_Carrier::Address) Address SoldTo Text, Auto-enter by Calculation = If (IsEmpty(Name), "", rel_Selling::Address) The problem here is that the Address details will not change once auto-entered, even if the Name is changed. If you make a mistake entering the name (and then press Tab or Enter or exit the field), then you will either have to manually change the Address or delete the record and start again. Another way would be to use a script to update the fields in the current record based on the new name. If you do want the old Items records to be updated with new changes to contact details, then you need to use Calculation fields instead. eg. Address BoughtFrom Calculation, Text Result = rel_Purchase::Address Carrier Address Calculation, Text Result = rel_Carrier::Address Address SoldTo Calculation, Text Result = rel_Selling::Address This also has the bonus of being able to change the Name if you make a mistake and have the Address update itself. Either way, you will then also need similar versions for Phone field and whatever other fields you want copied across from the Address Book file. ALL DONE! Helpful Harry Hopefully helping harassed humans happily handle handiwork hardships ;o) |
![]() |
| Thread Tools | |
| Display Modes | |
| |