M
Marc
stPlanID = Me!agtplan
stTest = "[PlanID] = " & stPlanID & ""
this works:
rst.Open "SELECT * FROM tblAgtSplits WHERE ([PlanID] = 8)",_
CurrentProject.Connection
but this doesn't and I can't figure out why:
rst.Open "SELECT * FROM tblAgtSplits WHERE (stTest)",_
CurrentProject.Connection
stTest = "[PlanID] = " & stPlanID & ""
this works:
rst.Open "SELECT * FROM tblAgtSplits WHERE ([PlanID] = 8)",_
CurrentProject.Connection
but this doesn't and I can't figure out why:
rst.Open "SELECT * FROM tblAgtSplits WHERE (stTest)",_
CurrentProject.Connection