UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> help with relationships    
 
   
gkar
post Jul 10 2005, 01:45 PM
Post #1

UtterAccess Enthusiast
Posts: 58



Hi UA,

heeeelllllppp!!

Im working on a databse for funded/charity based company that I work for

The company collect and recycle IT waste.

We need a system that will allow us to have one company/many address(collection address 1,2 and 3 etc billing, mail etc) each address needs many contacts, each contact has many phones and emails. I have this set up and working no prob. I have a form that allows me to enter and retrive data just as I have said. The problem is I need to intregrate all of the possible company/address combos in a collection form, based on a collection table. This table/form should store Company collected from, company address used (from the list of possible endless collection address each company may have) then contact name info.

I have attatched a screeny of my relationships so far. If u c any major probs please let me know.

many thanks UA.

si (IMG:http://www.utteraccess.com/forum/style_emoticons/default/frown.gif)
Attached File(s)
Attached File  access.JPG ( 145.12K ) Number of downloads: 27
 
Go to the top of the page
 
+
 
Start new topic
Replies
strive4peace
post Jul 18 2005, 03:14 AM
Post #2

UtterAccess VIP
Posts: 20,211
From: Colorado



if you delete a record -- you should delete the related child records -- or at least remove the reference!

You can do this with an Update query

Keep RI ON -- run the Update Query first on the child records, THEN DoEvents* , THEN delete the record you want

*
DoEvents is used to make VBA pay attention to what is currently happening and look to see if the OS (Operating System) has any requests.

ie: if you have a loop and want to be able to BREAK it with CTRL-BREAK, put DoEvents into the loop

DoEvents will also update values written to a form by a general procedure

A DoEvents is done when you use MsgBox, or are stepping through code (since it has to pay attention to the keyboard)

It is a good way to say, "Wake Up!"
Go to the top of the page
 
+

Posts in this topic
- gkar   help with relationships   Jul 10 2005, 01:45 PM
- - strive4peace2010   Re: help with relationships   Jul 15 2005, 12:21 AM
- - gkar   Re: help with relationships   Jul 17 2005, 04:04 AM
- - tbowconn   Re: help with relationships   Jul 17 2005, 07:03 AM
- - strive4peace2010   Re: help with relationships   Jul 17 2005, 08:34 AM
- - gkar   Re: help with relationships   Jul 18 2005, 01:38 AM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 03:14 AM
- - gkar   Re: help with relationships   Jul 18 2005, 03:46 AM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 03:56 AM
- - gkar   Re: help with relationships   Jul 18 2005, 04:28 AM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 05:42 AM
- - gkar   Re: help with relationships   Jul 18 2005, 06:34 AM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 06:56 AM
- - gkar   Re: help with relationships   Jul 18 2005, 07:06 AM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 07:27 AM
- - gkar   Re: help with relationships   Jul 18 2005, 07:33 AM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 07:54 AM
- - gkar   Re: help with relationships   Jul 18 2005, 08:20 AM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 08:56 AM
- - gkar   Re: help with relationships   Jul 18 2005, 04:41 PM
- - strive4peace2010   Re: help with relationships   Jul 18 2005, 07:57 PM
- - gkar   Re: help with relationships   Jul 19 2005, 01:51 AM
- - strive4peace2010   Re: help with relationships   Jul 19 2005, 05:53 AM


Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 02:29 AM