A
Adamus Turner
Hi All,
My background is in SQL Server but I'm looking for a way to run a cursor in
MS Access 2003.
Something like:
DECLARE @BinLocation varchar(50)
DECLARE @PartNum varchar(50)
DECLARE c1 CURSOR FOR
SELECT BinLocation, PartNum
FROM ConsignmentBinLocation
Where PartNum = @PartNum
OPEN c1
FETCH NEXT FROM c1
INTO @BinLocation, @PartNum
WHILE @@FETCH_STATUS = 0
BEGIN
UPDATE TestTable
SET OEMBinLocation = @BinLocation
WHERE PartNum = @PartNum
FETCH NEXT FROM c1
INTO @BinLocation, @PartNum
END
CLOSE c1
DEALLOCATE c1
Is this possible?
Any help appreciated.
Adamus
My background is in SQL Server but I'm looking for a way to run a cursor in
MS Access 2003.
Something like:
DECLARE @BinLocation varchar(50)
DECLARE @PartNum varchar(50)
DECLARE c1 CURSOR FOR
SELECT BinLocation, PartNum
FROM ConsignmentBinLocation
Where PartNum = @PartNum
OPEN c1
FETCH NEXT FROM c1
INTO @BinLocation, @PartNum
WHILE @@FETCH_STATUS = 0
BEGIN
UPDATE TestTable
SET OEMBinLocation = @BinLocation
WHERE PartNum = @PartNum
FETCH NEXT FROM c1
INTO @BinLocation, @PartNum
END
CLOSE c1
DEALLOCATE c1
Is this possible?
Any help appreciated.
Adamus