trbl with sending data

Crash1hd

Registered CyberGeek
Local time
Today, 05:18
Joined
Jan 11, 2004
Messages
143
OK I am having trbl with this code

Private Sub ocxCalendar_Click()
mystring = Me.OpenArgs
myarray = Split(mystring)
'myarray(0)
'myarray(1)

[Forms]!["myarray(1)"]![txtDate].Value = Me.ocxCalendar.Value
DoCmd.Close
End Sub

keeps saying unable to find form myarray(1) even though when you highlight it gives you myarray(1) = "Inbound"
 
I believe your syntax is incorrect...

Forms(myarray(1)).[txtDate].Value = Me.ocxCalendar.Value
DoCmd.Close
End Sub

Hope this helps, Good Luck!
 
That worked perfectly For the life of me I just could not figure out the syntax!!!! :cool:
 

Users who are viewing this thread

Back
Top Bottom