AllExperts > Using MS Access 
Search      
Using MS Access
Volunteer
Answers to thousands of questions
 Home · More Using MS Access Questions · Answer Library  · Encyclopedia ·
More Using MS Access Answers
Question Library

Ask a question about Using MS Access
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Scottgem
Expertise
I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience
I've been designing databases for over 15 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

 
   

You are here:  Experts > Computing/Technology > Business Software > Using MS Access > Textbox in an Update Form

Using MS Access - Textbox in an Update Form


Expert: Scottgem - 11/6/2009

Question
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 unchanged 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.


Answer
First, the condition will never be true. Now() changes every tenth of a second. Second, I'm not positive what you are trying to do. What does this app do, what does the table you are binding the form to capture? I can understand what Register Date could be, but I'm not following what Actual date would be.

Hope this helps,
Scott<>
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.