Talk About Network

Google





Software > Access Forms > Re: Changing Te...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 46524 of 46786
Post > Topic >>

Re: Changing Text to Default Value if text already has a value in it

by "Arvin Meyer [MVP]" <arvinm@[EMAIL PROTECTED] > Dec 3, 2008 at 04:44 PM

"nocty" <u47969@[EMAIL PROTECTED]
> wrote in message news:8e2013dc3ad1d@[EMAIL PROTECTED]
> Hello,
>
> I am a student working on a project. My group has ran into a problem,
one 
> of
> the requirements is to open a form that has a feild called
> Completed_Order_Date, it asks to set the value to current date if the
text 
> is
> null, I used =date() as the default value yet my test data that I
entered
> still comes up null. How do I enter the system date in a null value?

You can use a calendar, like the one at:

http://www.datastrat.com/Download/Calendar2K.zip

or put some code in a button, like:

Private Sub cmdDate()
    Me.txtNameOfControl = Date()
End Sub

> Also the other requirement is to change the order_status which is a
combo 
> box
> from Pending or Active to "Completed" which is the default value of 4 in

> our
> list. The preexisting value still shows up as Active or Pending when I 
> want
> it to show up as completed. Any help would be awesome.

Similar code to the above, but to write it for you, I need to know which 
event triggers the change to Completed.
-- 
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
 




 2 Posts in Topic:
Changing Text to Default Value if text already has a value in it
"nocty" <u47  2008-12-03 20:38:03 
Re: Changing Text to Default Value if text already has a value i
"Arvin Meyer [MVP]&q  2008-12-03 16:44:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 14:23:51 PST 2009.