A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

creating a log file with MS Access



 
 
Thread Tools Display Modes
  #1  
Old November 24th, 2006, 03:40 PM posted to microsoft.public.access.gettingstarted
snipersix
external usenet poster
 
Posts: 13
Default creating a log file with MS Access

I currently have a database that uses MS Access, with a login system. I
used the built in security system of access to do this, which is in
(.MDW) format.

The problem i have now is that I want to create a log file of all the
people that logged in the database. Which means, it would display:
There username, date/time they logged in etc. My system also has a
splashscreen and a switchboard.

  #2  
Old November 24th, 2006, 03:43 PM posted to microsoft.public.access.gettingstarted
Rick Brandt
external usenet poster
 
Posts: 4,354
Default creating a log file with MS Access

"snipersix" wrote in message
oups.com...
I currently have a database that uses MS Access, with a login system. I
used the built in security system of access to do this, which is in
(.MDW) format.

The problem i have now is that I want to create a log file of all the
people that logged in the database. Which means, it would display:
There username, date/time they logged in etc. My system also has a
splashscreen and a switchboard.


And your question regarding that is?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #3  
Old November 24th, 2006, 03:50 PM posted to microsoft.public.access.gettingstarted
snipersix
external usenet poster
 
Posts: 13
Default creating a log file with MS Access

well my question is, how do i create a log file given this situation,
like what are the codes necessary to do this.


Rick Brandt wrote:
"snipersix" wrote in message
oups.com...
I currently have a database that uses MS Access, with a login system. I
used the built in security system of access to do this, which is in
(.MDW) format.

The problem i have now is that I want to create a log file of all the
people that logged in the database. Which means, it would display:
There username, date/time they logged in etc. My system also has a
splashscreen and a switchboard.


And your question regarding that is?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #4  
Old November 24th, 2006, 04:00 PM posted to microsoft.public.access.gettingstarted
Rick Brandt
external usenet poster
 
Posts: 4,354
Default creating a log file with MS Access

"snipersix" wrote in message
oups.com...
well my question is, how do i create a log file given this situation,
like what are the codes necessary to do this.


Create the table with the desired fields. In your startup code run an append
query to add a row to that table.

EXAMPLE:

INSERT INTO TableName (UserNameField, LoginTimeField)
VALUES(CurrentUser, Now())

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #5  
Old November 24th, 2006, 04:10 PM posted to microsoft.public.access.gettingstarted
snipersix
external usenet poster
 
Posts: 13
Default creating a log file with MS Access

where do i insert the code in my splash screen or in the table?


Rick Brandt wrote:
"snipersix" wrote in message
oups.com...
well my question is, how do i create a log file given this situation,
like what are the codes necessary to do this.


Create the table with the desired fields. In your startup code run an append
query to add a row to that table.

EXAMPLE:

INSERT INTO TableName (UserNameField, LoginTimeField)
VALUES(CurrentUser, Now())

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #6  
Old November 24th, 2006, 04:14 PM posted to microsoft.public.access.gettingstarted
Rick Brandt
external usenet poster
 
Posts: 4,354
Default creating a log file with MS Access

"snipersix" wrote in message
oups.com...
where do i insert the code in my splash screen or in the table?


If you have a form that is automatically opened at startup you can execute the
query in the Open or Load event of that form.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #7  
Old November 24th, 2006, 05:05 PM posted to microsoft.public.access.gettingstarted
snipersix
external usenet poster
 
Posts: 13
Default creating a log file with MS Access

another question, what is the code for called an append query in a
form?


Rick Brandt wrote:
"snipersix" wrote in message
oups.com...
where do i insert the code in my splash screen or in the table?


If you have a form that is automatically opened at startup you can execute the
query in the Open or Load event of that form.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #8  
Old November 24th, 2006, 05:07 PM posted to microsoft.public.access.gettingstarted
Rick Brandt
external usenet poster
 
Posts: 4,354
Default creating a log file with MS Access

"snipersix" wrote in message
ups.com...
another question, what is the code for called an append query in a
form?


If you create a saved query you can use...

CurrentDB.Execute "QueryName", dbFailOnError

As an alternative the same command above could be used with a SQL statement
substituted for the query name.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #9  
Old November 24th, 2006, 05:09 PM posted to microsoft.public.access.gettingstarted
snipersix
external usenet poster
 
Posts: 13
Default creating a log file with MS Access

Sorry i meant, whats the code for calling an append query in a form?




snipersix wrote:
another question, what is the code for called an append query in a
form?


Rick Brandt wrote:
"snipersix" wrote in message
oups.com...
where do i insert the code in my splash screen or in the table?


If you have a form that is automatically opened at startup you can execute the
query in the Open or Load event of that form.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #10  
Old November 24th, 2006, 05:17 PM posted to microsoft.public.access.gettingstarted
snipersix
external usenet poster
 
Posts: 13
Default creating a log file with MS Access

where do you place this code

INSERT INTO TableName (UserNameField, LoginTimeField)
VALUES(CurrentUser, Now())



snipersix wrote:
Sorry i meant, whats the code for calling an append query in a form?




snipersix wrote:
another question, what is the code for called an append query in a
form?


Rick Brandt wrote:
"snipersix" wrote in message
oups.com...
where do i insert the code in my splash screen or in the table?

If you have a form that is automatically opened at startup you can execute the
query in the Open or Load event of that form.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.