Thank you Graham for your help I was away for holiday, very happy new year to you too.
Kambiz
--------------------------------------------
On Sat, 12/27/14, 'Graham Mandeno' graham@mandeno.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
Subject: RE: [MS_AccessPros] Today's Date
To: MS_Access_Professionals@yahoogroups.com
Date: Saturday, December 27, 2014, 6:47 PM
Hello Kambiz
Set the DefaultValue property of your textbox to =Now().
If you just want today's date, without the time, then
use =Date() instead.
Good luck and Happy New Year!
Graham
_____
Graham Mandeno
Microsoft Access MVP 1996 - 2014
Graham
From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com]
Sent: Sunday, 28 December 2014 08:43
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Today's Date
Thank you Crystal,
What I like to do is when end user add a new record date and
time be
automatically "Now()" enter into its field and
would not change if record is
edited.
1. As you instructed I used:
If Me.NewRecord Then
Today = Now()
End If
it did not work, please help with code.
2. The field in question should be Date/Time or Text
field?
I remain as always
Kambiz
[Non-text portions of this message have been removed]
#yiv6495592675 #yiv6495592675 --
#yiv6495592675ygrp-mkp {
border:1px solid #d8d8d8;font-family:Arial;margin:10px
0;padding:0 10px;}
#yiv6495592675 #yiv6495592675ygrp-mkp hr {
border:1px solid #d8d8d8;}
#yiv6495592675 #yiv6495592675ygrp-mkp #yiv6495592675hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px
0;}
#yiv6495592675 #yiv6495592675ygrp-mkp #yiv6495592675ads {
margin-bottom:10px;}
#yiv6495592675 #yiv6495592675ygrp-mkp .yiv6495592675ad {
padding:0 0;}
#yiv6495592675 #yiv6495592675ygrp-mkp .yiv6495592675ad p {
margin:0;}
#yiv6495592675 #yiv6495592675ygrp-mkp .yiv6495592675ad a {
color:#0000ff;text-decoration:none;}
#yiv6495592675 #yiv6495592675ygrp-sponsor
#yiv6495592675ygrp-lc {
font-family:Arial;}
#yiv6495592675 #yiv6495592675ygrp-sponsor
#yiv6495592675ygrp-lc #yiv6495592675hd {
margin:10px
0px;font-weight:700;font-size:78%;line-height:122%;}
#yiv6495592675 #yiv6495592675ygrp-sponsor
#yiv6495592675ygrp-lc .yiv6495592675ad {
margin-bottom:10px;padding:0 0;}
#yiv6495592675 #yiv6495592675actions {
font-family:Verdana;font-size:11px;padding:10px 0;}
#yiv6495592675 #yiv6495592675activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}
#yiv6495592675 #yiv6495592675activity span {
font-weight:700;}
#yiv6495592675 #yiv6495592675activity span:first-child {
text-transform:uppercase;}
#yiv6495592675 #yiv6495592675activity span a {
color:#5085b6;text-decoration:none;}
#yiv6495592675 #yiv6495592675activity span span {
color:#ff7900;}
#yiv6495592675 #yiv6495592675activity span
.yiv6495592675underline {
text-decoration:underline;}
#yiv6495592675 .yiv6495592675attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px
0;width:400px;}
#yiv6495592675 .yiv6495592675attach div a {
text-decoration:none;}
#yiv6495592675 .yiv6495592675attach img {
border:none;padding-right:5px;}
#yiv6495592675 .yiv6495592675attach label {
display:block;margin-bottom:5px;}
#yiv6495592675 .yiv6495592675attach label a {
text-decoration:none;}
#yiv6495592675 blockquote {
margin:0 0 0 4px;}
#yiv6495592675 .yiv6495592675bold {
font-family:Arial;font-size:13px;font-weight:700;}
#yiv6495592675 .yiv6495592675bold a {
text-decoration:none;}
#yiv6495592675 dd.yiv6495592675last p a {
font-family:Verdana;font-weight:700;}
#yiv6495592675 dd.yiv6495592675last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}
#yiv6495592675 dd.yiv6495592675last p
span.yiv6495592675yshortcuts {
margin-right:0;}
#yiv6495592675 div.yiv6495592675attach-table div div a {
text-decoration:none;}
#yiv6495592675 div.yiv6495592675attach-table {
width:400px;}
#yiv6495592675 div.yiv6495592675file-title a, #yiv6495592675
div.yiv6495592675file-title a:active, #yiv6495592675
div.yiv6495592675file-title a:hover, #yiv6495592675
div.yiv6495592675file-title a:visited {
text-decoration:none;}
#yiv6495592675 div.yiv6495592675photo-title a,
#yiv6495592675 div.yiv6495592675photo-title a:active,
#yiv6495592675 div.yiv6495592675photo-title a:hover,
#yiv6495592675 div.yiv6495592675photo-title a:visited {
text-decoration:none;}
#yiv6495592675 div#yiv6495592675ygrp-mlmsg
#yiv6495592675ygrp-msg p a span.yiv6495592675yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}
#yiv6495592675 .yiv6495592675green {
color:#628c2a;}
#yiv6495592675 .yiv6495592675MsoNormal {
margin:0 0 0 0;}
#yiv6495592675 o {
font-size:0;}
#yiv6495592675 #yiv6495592675photos div {
float:left;width:72px;}
#yiv6495592675 #yiv6495592675photos div div {
border:1px solid
#666666;height:62px;overflow:hidden;width:62px;}
#yiv6495592675 #yiv6495592675photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}
#yiv6495592675 #yiv6495592675reco-category {
font-size:77%;}
#yiv6495592675 #yiv6495592675reco-desc {
font-size:77%;}
#yiv6495592675 .yiv6495592675replbq {
margin:4px;}
#yiv6495592675 #yiv6495592675ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}
#yiv6495592675 #yiv6495592675ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean,
sans-serif;}
#yiv6495592675 #yiv6495592675ygrp-mlmsg table {
font-size:inherit;font:100%;}
#yiv6495592675 #yiv6495592675ygrp-mlmsg select,
#yiv6495592675 input, #yiv6495592675 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}
#yiv6495592675 #yiv6495592675ygrp-mlmsg pre, #yiv6495592675
code {
font:115% monospace;}
#yiv6495592675 #yiv6495592675ygrp-mlmsg * {
line-height:1.22em;}
#yiv6495592675 #yiv6495592675ygrp-mlmsg #yiv6495592675logo {
padding-bottom:10px;}
#yiv6495592675 #yiv6495592675ygrp-msg p a {
font-family:Verdana;}
#yiv6495592675 #yiv6495592675ygrp-msg
p#yiv6495592675attach-count span {
color:#1E66AE;font-weight:700;}
#yiv6495592675 #yiv6495592675ygrp-reco
#yiv6495592675reco-head {
color:#ff7900;font-weight:700;}
#yiv6495592675 #yiv6495592675ygrp-reco {
margin-bottom:20px;padding:0px;}
#yiv6495592675 #yiv6495592675ygrp-sponsor #yiv6495592675ov
li a {
font-size:130%;text-decoration:none;}
#yiv6495592675 #yiv6495592675ygrp-sponsor #yiv6495592675ov
li {
font-size:77%;list-style-type:square;padding:6px 0;}
#yiv6495592675 #yiv6495592675ygrp-sponsor #yiv6495592675ov
ul {
margin:0;padding:0 0 0 8px;}
#yiv6495592675 #yiv6495592675ygrp-text {
font-family:Georgia;}
#yiv6495592675 #yiv6495592675ygrp-text p {
margin:0 0 1em 0;}
#yiv6495592675 #yiv6495592675ygrp-text tt {
font-size:120%;}
#yiv6495592675 #yiv6495592675ygrp-vital ul li:last-child {
border-right:none !important;
}
#yiv6495592675
Posted by: Kambiz Afshartous <kenaf42@yahoo.com>
| Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (10) |
Tidak ada komentar:
Posting Komentar