J
javablood
Hi,
I am not even sure if this can be done. I am trying to reference a table in
a query. The table is defined in a form. Here is the query I am working
with and I get the syntax error in JOIN operation.
SQL = "SELECT Me.tbotbl.Param_Name, " & _
"Me.tbotbl.N, Me.tbotbl.S, " & _
"[MK_Var(S)].[Var(S)], " & _
"IIf(=0,0,IIf(>0,(-1)/([Var(S)]^(1/2)),(+1)/([Var(S)]^(1/2)))) AS
Z INTO tblMK_Z " & _
"FROM [MK_Var(S)] INNER JOIN Me.tbotbl " & _
"ON ([MK_Var(S)].PARAM_NAME = Me.tbotbl.Param_Name) " & _
"AND ([MK_Var(S)].STATION_ID = Me.tbotbl.Station_ID);"
I have also tried substituting [Forms]![frmMK]![tbotbl] for Me.tbotbl but I
get the same error.
Any help is appreciated. Thanks,
I am not even sure if this can be done. I am trying to reference a table in
a query. The table is defined in a form. Here is the query I am working
with and I get the syntax error in JOIN operation.
SQL = "SELECT Me.tbotbl.Param_Name, " & _
"Me.tbotbl.N, Me.tbotbl.S, " & _
"[MK_Var(S)].[Var(S)], " & _
"IIf(
Z INTO tblMK_Z " & _
"FROM [MK_Var(S)] INNER JOIN Me.tbotbl " & _
"ON ([MK_Var(S)].PARAM_NAME = Me.tbotbl.Param_Name) " & _
"AND ([MK_Var(S)].STATION_ID = Me.tbotbl.Station_ID);"
I have also tried substituting [Forms]![frmMK]![tbotbl] for Me.tbotbl but I
get the same error.
Any help is appreciated. Thanks,