home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9435 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.8 KB  |  47 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!gumby!wupost!monsanto.com!skcla.monsanto.com!jjfink
  3. From: jjfink@skcla.monsanto.com
  4. Subject: Re: ? Microsoft Access
  5. Message-ID: <1993Jan27.133328.1@skcla.monsanto.com>
  6. Lines: 34
  7. Sender: news@tin.monsanto.com (USENET News System)
  8. Organization: Searle, Skokie, IL
  9. References: <C1H7tt.G4z@world.std.com>
  10. Distribution: usa
  11. Date: Wed, 27 Jan 1993 13:33:28 GMT
  12.  
  13. In article <C1H7tt.G4z@world.std.com>, iano@world.std.com (Ian J Ornstein) writes:
  14. > 1.- How can I have a date automatically changed in the TABLE
  15. >     when any field in a form is changed? I know I can use =Date()
  16. >     in a form field. Can I do this without having a date field on
  17. >     the form?
  18.  
  19. Have the "Before Update" property of the Form call a Macro which has
  20. one line
  21.     SetValue
  22. with parameters
  23.     Item:        [Last Mod Date]
  24.     Expression:    NOW()
  25.  
  26. If the date field *is* visible, you may want to use the RepaintObject macro
  27. action to display the new date.
  28.  
  29. > 2.- I'm using counter data type as keys for my tables.
  30. >     I'd like to be able to do some sort of look up with the form
  31. >     so that the text name from the reference table is displayed in the
  32. >     form but only the value of the foreign key is stored in the table.
  33. >     How can I do this?
  34.  
  35. Your form will have to be based on a Query that relates the two tables.  What
  36. I'd suggest is to make the name field a Combo Box that has the Limit To List
  37. property set to Yes, the Default is set to [Company Name], and has an After
  38. Update property set to modify the ID Number in the primary file.
  39.  
  40. Joel
  41. -- 
  42. jjfink@skcla.monsanto.com
  43. ------------------------------------------------------------------------------
  44. "I want peace on earth, and goodwill towards man."
  45. "We don't do that kind of thing, we're the United States Government!"
  46.   -- from _Sneakers_
  47.