G
Gary.Crider
Dim Y As String
X = Forms!frm1!Combo0.Column(1)
Y = "SELECT Bid FROM" & X & "ORDER BY Bid;"
z = "SELECT table1.feild1, table2.feild1, ..., ..., FROM table1,
table2, .., .., WHERE (..,..,(Like '*-" & Y & "-*'))"
me.recordsource = z
When i get here to the end of my SQL statement I want to place Y into
the like clause. It will compile like this, but when I go to get the
report from the form it will not pick up the correct value that sould
be in Y. I don't believe that it is picking up any value there. This
part of the statement seperates 8 different reports and I thought there
would be a way to do this.
Do i have it all wrong? I figure it is something easy, but I just can't
get it right now.
X = Forms!frm1!Combo0.Column(1)
Y = "SELECT Bid FROM" & X & "ORDER BY Bid;"
z = "SELECT table1.feild1, table2.feild1, ..., ..., FROM table1,
table2, .., .., WHERE (..,..,(Like '*-" & Y & "-*'))"
me.recordsource = z
When i get here to the end of my SQL statement I want to place Y into
the like clause. It will compile like this, but when I go to get the
report from the form it will not pick up the correct value that sould
be in Y. I don't believe that it is picking up any value there. This
part of the statement seperates 8 different reports and I thought there
would be a way to do this.
Do i have it all wrong? I figure it is something easy, but I just can't
get it right now.