a default value in a text box

Reply

Join Date: Apr 2006
Posts: 3
Reputation: chancellor is an unknown quantity at this point 
Solved Threads: 0
chancellor chancellor is offline Offline
Newbie Poster

a default value in a text box

 
0
  #1
Apr 11th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: a default value in a text box

 
0
  #2
Apr 11th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC