Re: saving information into a tables
- From: John Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Dec 2006 22:47:39 -0700
On Wed, 27 Dec 2006 20:54:01 -0800, GlobalTek
<GlobalTek@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Oh ok hehe Thanks for the info
Well I have a form that ask the user for Language selection ( french or
English )
Hide in that form his 3 Text Box, 1 will say the username of the person (
=fosusername() ) the second text box will say the machine name (
=fOSMachineName() ) and the last one will promt the date the form was open (
=now() ) I would like that info to be saved inside a table to know who is
accessing the file in case they is some problem. I tried the thing below and
It did not work, Anyone can tell me or help me resolving the problem please?
ok...
Open a recordset based on the Table and add a new record, setting its
fields to the desired values.
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
Set rs = db.OpenRecordset("YourLogTable", dbOpenDynaset, dbSeeChanges)
rs.AddNew
rs!Username = fosusername() ' or use the control name
rs!Machinename = fOSMachinename()
rs!WhenOpened = Now
rs.Update
rs.Close
Set rs = Nothing
John W. Vinson[MVP]
.
- References:
- Re: saving information into a tables
- From: Albert D. Kallal
- Re: saving information into a tables
- From: John Vinson
- Re: saving information into a tables
- Prev by Date: Re: How to obtain a count of subform records
- Next by Date: Re: Access vs SQL Date Weirdness = Incompatibility?
- Previous by thread: Re: saving information into a tables
- Next by thread: Re: saving information into a tables
- Index(es):
Relevant Pages
|