Hi all, trying to make my self understood i wonder if it is possible to
include "multiple" syntax in one sub..the same sub would also have to include more code..IF statements etc
Private Sub cmbo1_AfterUpdate()
Me!cmbo2.RowSource = "Select tbl1.text2 " & _
"FROM tbl1 " & _
"WHERE tbl1.text1 = '" & cmbo1.text1 & "' " & _
"ORDER BY tbl1.text2;"
----
Me!cmbo3.RowSource = "Select tbl2.text2 " & _
"FROM tbl2 " & _
"WHERE tbl2.text1 = '" & cmbo1.text1 & "' " & _
"ORDER BY tbl2.text2;"
End sub
Thanks!
include "multiple" syntax in one sub..the same sub would also have to include more code..IF statements etc
Private Sub cmbo1_AfterUpdate()
Me!cmbo2.RowSource = "Select tbl1.text2 " & _
"FROM tbl1 " & _
"WHERE tbl1.text1 = '" & cmbo1.text1 & "' " & _
"ORDER BY tbl1.text2;"
----
Me!cmbo3.RowSource = "Select tbl2.text2 " & _
"FROM tbl2 " & _
"WHERE tbl2.text1 = '" & cmbo1.text1 & "' " & _
"ORDER BY tbl2.text2;"
End sub
Thanks!