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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Textbox in an Update Form



 
 
Thread Tools Display Modes
  #1  
Old November 6th, 2009, 11:17 AM posted to microsoft.public.access.forms
Nora
external usenet poster
 
Posts: 24
Default Textbox in an Update Form

I have 2 text boxes in my updatable form that I want ask about.
1st one is "Register Date" and the other is "Actual Date".

How can I create the "Actual Date" to run my code before I go to another
text box to input other data (this is a a NEW RECORD page of the form)?
The code is: IIf([Register Date] = Now(), [Register Date], "")

In the same time, I want the "Actual Date" remain unchange for all the
previous records. And also, I want the "Actual Date" to update the linked
table after I accepted the data displayed in the "Actual Date" after it run
my code.

  #2  
Old November 9th, 2009, 09:23 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Textbox in an Update Form

The code is: IIf([Register Date] = Now(), [Register Date], "")
Not going to happen, ever!
This Now() --- 11/9/2009 1:19:52 PM but in two seconds it will be
11/9/2009 1:19:55 PM so your [Register Date] just ain't gonna match.

--
Build a little, test a little.


"Nora" wrote:

I have 2 text boxes in my updatable form that I want ask about.
1st one is "Register Date" and the other is "Actual Date".

How can I create the "Actual Date" to run my code before I go to another
text box to input other data (this is a a NEW RECORD page of the form)?
The code is: IIf([Register Date] = Now(), [Register Date], "")

In the same time, I want the "Actual Date" remain unchange for all the
previous records. And also, I want the "Actual Date" to update the linked
table after I accepted the data displayed in the "Actual Date" after it run
my code.

 




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:37 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.