Passing two objects to subroutine, not working?

M

musa.biralo

Hi,

i am just a beginner and i don't understand why the following simple
codes is not working.. I just want to pass two strings to my
subroutine. any help will be great!!!

Sub test()
subroutine ("first", "second")
End Sub

Sub subroutine(ByVal one As String, ByVal two As String)
MsgBox (one & two)
End Sub

Thanks
musa.biralo
 
R

ruralguy via AccessMonster.com

Call subroutine ("first", "second")


musa.biralo said:
Hi,

i am just a beginner and i don't understand why the following simple
codes is not working.. I just want to pass two strings to my
subroutine. any help will be great!!!

Sub test()
subroutine ("first", "second")
End Sub

Sub subroutine(ByVal one As String, ByVal two As String)
MsgBox (one & two)
End Sub

Thanks
musa.biralo
 
M

musa.biralo

Hey ruralguy,

I gave you 5* for the word "Call".
thanks again and enjoy!

musa.biralo
 
R

ruralguy via AccessMonster.com

Great! Glad we could help.

musa.biralo said:
Hey ruralguy,

I gave you 5* for the word "Call".
thanks again and enjoy!

musa.biralo
Call subroutine ("first", "second")
[quoted text clipped - 20 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top