|
-
Jan 27th, 2004, 11:58 PM
#1
Thread Starter
New Member
Simple Q
I am using Access I would like to know if there is a method that you can use to initialise the form controls
.......
So basically I am after a method that will automatically run as soon as the user opens the form, then that method can initialise things like control default values and combo box list items. (I know that both of those can be done other ways but I would like to do them in VBA)
-
Jan 28th, 2004, 04:35 AM
#2
VB Code:
Private Sub Form_Open(Cancel As Integer)
Forms!MyFormNameHere!Text1.SetFocus
Text1.Text = "Hello world"
MsgBox "Done setting form control values, " & _
"now showing the form to the user..."
End Sub
-
Jan 28th, 2004, 06:05 AM
#3
Thread Starter
New Member
thanx alot for your speedy reply!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|