home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / database / 1768 next >
Encoding:
Text File  |  1993-01-21  |  2.6 KB  |  67 lines

  1. Newsgroups: comp.sys.mac.databases
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!spool.mu.edu!agate!stanford.edu!kronos.arc.nasa.gov!butch!netcomsv!netcom.com!jeffp
  3. From: jeffp@netcom.com (Jeff)
  4. Subject: 4D Auto Assign Related Value Ain't Workin!
  5. Message-ID: <1993Jan21.081628.15195@netcom.com>
  6. Organization: BeHereNow
  7. Date: Thu, 21 Jan 1993 08:16:28 GMT
  8. Lines: 57
  9.  
  10.  
  11. Please appreciate this is almost a last resort and that I have read the
  12. manuals and discussed this with ACI already. I'm hoping that someone can
  13. help me with a question about automatic relations and auto assign related
  14. values. I will keep it as simplified as I can:
  15.  
  16. I am creating a database for a Newsletter. I have two files, Clients and Ads.
  17. Clients is the one file, Ads is the Many. Each Client can have many ads, only
  18. one client per ad... simple.
  19.  
  20. Clients have a client number, and I use it as the relational field between the
  21. two files.
  22.  
  23. Clients has an input layout with an included layout for Ads file. I understand 
  24. that the auto assign features only work if you use command-tab, or Add To 
  25. Included button. 
  26.  
  27. The Client field uses a #N to increment the field and assign an integer to it.
  28. I have this only in the [Client]Client_Number layout field, not in the [Ads]
  29. Client_Number field, since this value should be spawned once, then auto assign
  30. ed to the related field in Ads;Clients, right?
  31.  
  32. So during data entry, I want to add a name and address in the client
  33. input layout, then hit the Add to Included button and have the client 
  34. number in the current 
  35. record carry across to the new Ad record, but it is not being
  36. carried across not matter how I try it. 
  37.  
  38. I have:
  39. selected Relate One and Relate Many in the Relations dialog between the
  40. two 
  41. files, as well as the auto assign related value.
  42.  
  43. I have the [Ads]Client_Number Field in the Ads layout assigned to
  44. []Client_Number in the Field Dialog when I double click the 
  45. [Ads]Client_Number field.
  46.  
  47. I have not used #N in the [Ads]Client_Number field, because I am
  48. expecting this number to be auto assigned during data entry; carried
  49. across from the [Clients]Client_Number field where the integer was
  50. created.
  51.  
  52. This is supposed to work, but does not. Any ideas why?
  53. I can't find an example database, tutorial, etc. that demonstrates
  54. this!
  55.  
  56. (4d Tech sez, "well, then do it with a variable.")
  57.  
  58. If not, then how could I do this with a variable? 
  59. If I don't do it with the correct proceedural controls, then [Ads]Client_
  60. Number gets set to what ever the current record is, not what 
  61. was in [Client]Client_Number when the record was created, and things 
  62. get really hosed. I assume I would use a process varable?
  63.  
  64. Lost in CyberSpace,
  65.  
  66. Jeff-
  67.