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