Object doesn't accept this property or method??

capdownlondon

Registered User.
Local time
Today, 18:39
Joined
Mar 18, 2007
Messages
52
i'm getting this error^^^ i'm trying to update a textbox input in a subform from my calendar on my form. here's the code i'm using:

Code:
Private Sub Calendar0_Click()
Dim varCal As Date
varCal = Me!Calendar0.Value
Forms!RedsForm.RedsForm3.Text3 = varCal
Forms!RedsForm.RedsForm3.Text3.Requery
    
End Sub

It's probably something really simple, but i can't work it out.....

thanks
Adam
 
sorted the problem, was calling the textbox on the subform wrong.
heres the correct code:
Code:
Private Sub Calendar0_Click()
Dim varCal As Date
varCal = Me!Calendar0.Value
Forms!RedsForm!RedsForm3.Form!Text3 = varCal
Forms!RedsForm!RedsForm3.Form!Text3.Requery

End Sub
 

Users who are viewing this thread

Back
Top Bottom