944,056 Members | Top Members by Rank

Ad:
Apr 11th, 2006
0

a default value in a text box

Expand Post »
I'm converting from MS Access 2000 database to a Visual Basic front end with Microsoft Access back end.
In MS Access, I can give a text box a default value. For instance, I'd like a text box to default to the system date. I can't seem to find a way to do that.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
chancellor is offline Offline
3 posts
since Apr 2006
Apr 11th, 2006
0

Re: a default value in a text box

you have to do it in code on form_load, by setting the .text property to date.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Text1.text = date

For example.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: inverse functions
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: SOS Im Dyingg :(





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC