View Single Post
Old 08-17-03, 04:00 AM   #5 (permalink)
birdseye
Aximsite Prospect
 
Join Date: Jul 2003
Location: East Anglia ,UK
Posts: 12
Thanked 0 Times in 0 Posts
On a form I have put a text box , 2 command buttons and 2 labels.
On running the code below, label2 will correctly show the contents of Text1 after clicking on command1, but on clicking on command2 the error Report
‘an error was encountered when running this program object is not a collection’ is shown

Private Sub Command1_Click()
Dim ml
ml=Cstr(text1)
Label2 = ml

End Sub

Private Sub Command2_Click()
Dim mls
ml=Cstr(text1)
Label3 = Left(ml,3)
End Sub
birdseye is offline   Reply With Quote