Have controls null when form opens

ppoindexter

Registered User.
Local time
Today, 05:32
Joined
Dec 28, 2000
Messages
134
What is the best way to have all controls in a subform empty when form opens? The form and subform are bound.


The following:

Private Sub Form_Open(Cancel As Integer)
Me.textDate = Null
End Sub

Produced error - "cant assign a value to object"

thanks in advance
 
i had tried that already as well
same error
thanks for the reply
 
Do you want to post a copy of the form and it's underlying table/query so I can look at
 
Sorry, just noticed something in your original thread - surely it should read

Private Sub Form_Open(Cancel As Integer)
Me.textDate.value = Null
End Sub

(ie you are missing the .value after me.textdate)
 

Users who are viewing this thread

Back
Top Bottom