M
munkis29
Hey All,
I wrote this code in SQL View Query window but when I try to save it, I
get an error box that says "Syntax Error in FROM clause" I've tried a
few different variations in the syntax but still to no avail. Hopefully
someone can look this over and tell me what I'm doing wrong, thanks in
advance. (Using Access 2003 by the way)
SELECT FileID FROM Test2
DECLARE @test AS int, @ctr AS int
SET @test = FileID
SET @ctr = .1
IF @test = FileID
SET FileID = FileID + ctr
SET @ctr = @ctr + .1
ELSE
SET @ctr = .1
END IF;
I wrote this code in SQL View Query window but when I try to save it, I
get an error box that says "Syntax Error in FROM clause" I've tried a
few different variations in the syntax but still to no avail. Hopefully
someone can look this over and tell me what I'm doing wrong, thanks in
advance. (Using Access 2003 by the way)
SELECT FileID FROM Test2
DECLARE @test AS int, @ctr AS int
SET @test = FileID
SET @ctr = .1
IF @test = FileID
SET FileID = FileID + ctr
SET @ctr = @ctr + .1
ELSE
SET @ctr = .1
END IF;